File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -149,11 +149,9 @@ export default class RedisStringsHandler {
149149 // Create Redis client with properly typed configuration
150150 this . client = createClient ( {
151151 url : redisUrl ,
152- pingInterval : 5000 , // Useful with Redis deployments that do not use TCP Keep-Alive. Restarts the connection if it is idle for too long.
152+ pingInterval : 10_000 , // Useful with Redis deployments that do not use TCP Keep-Alive. Restarts the connection if it is idle for too long.
153153 ...( database !== 0 ? { database } : { } ) ,
154- ...( socketOptions
155- ? { socket : { connectTimeout : timeoutMs , ...socketOptions } }
156- : { connectTimeout : timeoutMs } ) ,
154+ ...( socketOptions ? { socket : { ...socketOptions } } : { } ) ,
157155 ...( clientOptions || { } ) ,
158156 } ) ;
159157
You can’t perform that action at this time.
0 commit comments