const redisConnection: RedisOptions = { host: process.env.REDIS_HOST, port: Number(process.env.REDIS_PORT), password: process.env.REDIS_PASS, username: process.env.REDIS_USER, family: 0, retryStrategy: (times) => { // reconnect after return Math.min(times * 50, 2000); }, };