@@ -11,9 +11,7 @@ export type RedisWithClusterOptions = {
1111 clusterMode ?: boolean ;
1212 clusterOptions ?: Omit < ClusterOptions , "redisOptions" > ;
1313 keyPrefix ?: string ;
14- /** Reject commands immediately when the connection isn't ready instead of buffering them in memory (default: ioredis's `true`). */
15- enableOfflineQueue ?: boolean ;
16- /** Cap retries for an in-flight command before it rejects; `null` means unlimited (default: ioredis's default of 20). */
14+ /** Cap retries for a command before it rejects; `null` means unlimited (default: ioredis's default of 20). */
1715 maxRetriesPerRequest ?: number | null ;
1816} ;
1917
@@ -41,9 +39,6 @@ export function createRedisClient(
4139
4240 redis = new Redis . Cluster ( nodes , {
4341 ...options . clusterOptions ,
44- ...( options . enableOfflineQueue !== undefined
45- ? { enableOfflineQueue : options . enableOfflineQueue }
46- : { } ) ,
4742 redisOptions : {
4843 connectionName,
4944 keyPrefix : options . keyPrefix ,
@@ -82,9 +77,6 @@ export function createRedisClient(
8277 enableAutoPipelining : true ,
8378 keyPrefix : options . keyPrefix ,
8479 reconnectOnError : defaultReconnectOnError ,
85- ...( options . enableOfflineQueue !== undefined
86- ? { enableOfflineQueue : options . enableOfflineQueue }
87- : { } ) ,
8880 ...( options . maxRetriesPerRequest !== undefined
8981 ? { maxRetriesPerRequest : options . maxRetriesPerRequest }
9082 : { } ) ,
0 commit comments