From 91a79b159de17423d9a82b262a550fb45da1605d Mon Sep 17 00:00:00 2001 From: Tyler Garner Date: Fri, 3 Nov 2023 12:44:05 -0400 Subject: [PATCH] Move the pingInterval setting in to the root connection params. --- middleware/initialize.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/middleware/initialize.ts b/middleware/initialize.ts index 94b562460..b249d29bd 100644 --- a/middleware/initialize.ts +++ b/middleware/initialize.ts @@ -590,9 +590,8 @@ async function connectRedis( port: config.redis.port ? Number(config.redis.port) : config.redis.tls ? 6380 : 6379, password: config.redis.key, tls: !!config.redis.tls, - pingInterval: 5 * 60 * 1000, // Ping Each 5min. https://learn.microsoft.com/en-us/azure/azure-cache-for-redis/cache-best-practices-connection#idle-timeout }, - // name + pingInterval: 5 * 60 * 1000, // Ping Each 5min. https://learn.microsoft.com/en-us/azure/azure-cache-for-redis/cache-best-practices-connection#idle-timeout }; debug(`connecting to ${purpose} Redis ${redisConfig.host || redisConfig.tls}`); const redisClient: RedisClientType = createClient(redisOptions);