diff --git a/.env.example b/.env.example index 8e80da3..7ea9b1e 100644 --- a/.env.example +++ b/.env.example @@ -25,4 +25,5 @@ HASH_KEY= API_HOST= CLIENT_HOST= SLACK_TOKEN= -REDIS_HOST= \ No newline at end of file +REDIS_HOST= +REDIS_PASSWORD= \ No newline at end of file diff --git a/src/cache.ts b/src/cache.ts index 9ff18c7..34cee51 100644 --- a/src/cache.ts +++ b/src/cache.ts @@ -17,6 +17,7 @@ class Cache { this.client = new Redis({ maxRetriesPerRequest: 3, host: process.env.REDIS_HOST || 'localhost', + password: process.env.REDIS_PASSWORD, }); }