0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Added retryStrategy to redis cache adapter with configurable retry delay

no-issue
This commit is contained in:
Joe Grigg 2023-11-29 15:30:11 +00:00 committed by Joe Grigg
parent 8fc6fef168
commit 8c55aa7065

View file

@ -43,6 +43,9 @@ class AdapterCacheRedis extends BaseCacheAdapter {
port: config.port,
username: config.username,
password: config.password,
retryStrategy: () => {
return (config.storeConfig.retryConnectSeconds || 10) * 1000;
},
...config.storeConfig,
clusterConfig: config.clusterConfig
};