File tree 2 files changed +9
-2
lines changed 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -314,11 +314,17 @@ export interface CommanderConfig<
314
314
functions ?: F ;
315
315
scripts ?: S ;
316
316
/**
317
- * TODO
317
+ * Specifies the Redis Serialization Protocol version to use.
318
+ * RESP2 is the default (value 2), while RESP3 (value 3) provides
319
+ * additional data types and features introduced in Redis 6.0.
318
320
*/
319
321
RESP ?: RESP ;
320
322
/**
321
- * TODO
323
+ * When set to true, enables commands that have unstable RESP3 implementations.
324
+ * When using RESP3 protocol, commands marked as having unstable RESP3 support
325
+ * will throw an error unless this flag is explicitly set to true.
326
+ * This primarily affects modules like Redis Search where response formats
327
+ * in RESP3 mode may change in future versions.
322
328
*/
323
329
unstableResp3 ?: boolean ;
324
330
}
Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ export default class RedisCommandsQueue {
109
109
return new Decoder ( {
110
110
onReply : reply => this . #onReply( reply ) ,
111
111
onErrorReply : err => this . #onErrorReply( err ) ,
112
+ //TODO: we can shave off a few cycles by not adding onPush handler at all if CSC is not used
112
113
onPush : push => {
113
114
if ( ! this . #onPush( push ) ) {
114
115
// currently only supporting "invalidate" over RESP3 push messages
You can’t perform that action at this time.
0 commit comments