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:
parent
8fc6fef168
commit
8c55aa7065
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue