File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -619,13 +619,15 @@ export default class RedisClient<
619619 return this . #isolationPool. use ( fn ) ;
620620 }
621621
622- multi ( ) : RedisClientMultiCommandType < M , F , S > {
622+ MULTI ( ) : RedisClientMultiCommandType < M , F , S > {
623623 return new ( this as any ) . Multi (
624624 this . multiExecutor . bind ( this ) ,
625625 this . #options?. legacyMode
626626 ) ;
627627 }
628628
629+ multi = this . MULTI ;
630+
629631 async multiExecutor (
630632 commands : Array < RedisMultiQueuedCommand > ,
631633 selectedDB ?: number ,
Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ export default class RedisCluster<
224224 }
225225 }
226226
227- multi ( routing ?: RedisCommandArgument ) : RedisClusterMultiCommandType < M , F , S > {
227+ MULTI ( routing ?: RedisCommandArgument ) : RedisClusterMultiCommandType < M , F , S > {
228228 return new this . #Multi(
229229 ( commands : Array < RedisMultiQueuedCommand > , firstKey ?: RedisCommandArgument , chainId ?: symbol ) => {
230230 return this . #execute(
@@ -237,6 +237,8 @@ export default class RedisCluster<
237237 ) ;
238238 }
239239
240+ multi = this . MULTI ;
241+
240242 getMasters ( ) : Array < ClusterNode < M , F , S > > {
241243 return this . #slots. getMasters ( ) ;
242244 }
You can’t perform that action at this time.
0 commit comments