Merge pull request #472 from getmaxun/redis-auth

feat: support redis auth
This commit is contained in:
Karishma Shukla
2025-03-12 22:39:40 +05:30
committed by GitHub
3 changed files with 4 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ const connection = new IORedis({
host: process.env.REDIS_HOST,
port: process.env.REDIS_PORT ? parseInt(process.env.REDIS_PORT, 10) : 6379,
maxRetriesPerRequest: null,
password: process.env.REDIS_PASSWORD ? process.env.REDIS_PASSWORD : undefined,
});
connection.on('connect', () => {