courrier redis
This commit is contained in:
parent
bfb5441b3f
commit
a3f8fd4082
@ -9,8 +9,8 @@ let redisClient: Redis | null = null;
|
||||
*/
|
||||
export function getRedisClient(): Redis {
|
||||
if (!redisClient) {
|
||||
// Use existing Redis configuration from environment
|
||||
// This will respect any configuration settings in your environment
|
||||
// Let IoRedis read from environment variables automatically
|
||||
// It will read REDIS_URL, REDIS_HOST, REDIS_PORT, REDIS_PASSWORD, etc.
|
||||
redisClient = new Redis({
|
||||
retryStrategy: (times) => {
|
||||
// Exponential backoff with cap
|
||||
|
||||
Loading…
Reference in New Issue
Block a user