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
};