Skip to content

Commit

Permalink
Merge pull request #372 from NIHGOV/set-redis-ping-interval
Browse files Browse the repository at this point in the history
Add pingInterval to the Redis configuration.
  • Loading branch information
petersonjdNIH authored Nov 3, 2023
2 parents eb459cb + 440a30a commit 080322e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions middleware/initialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,7 @@ 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
};
Expand Down

0 comments on commit 080322e

Please sign in to comment.