MCPcopy
hub / github.com/redis/node-redis / MULTI

Method MULTI

packages/client/lib/client/pool.ts:557–566  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

555
556
557 MULTI<isTyped extends MultiMode = MULTI_MODE['TYPED']>() {
558 type Multi = new (...args: ConstructorParameters<typeof RedisClientMultiCommand>) => RedisClientMultiCommandType<isTyped, [], M, F, S, RESP, TYPE_MAPPING>;
559 // eslint-disable-next-line @typescript-eslint/no-explicit-any -- access to dynamic Multi class
560 return new ((this as any).Multi as Multi)(
561 (commands, selectedDB) => this.execute(client => client._executeMulti(commands, selectedDB)),
562 commands => this.execute(client => client._executePipeline(commands)),
563 this._commandOptions?.typeMapping,
564 this._self._keyPrefix
565 );
566 }
567
568 multi = this.MULTI;
569

Callers

nothing calls this directly

Calls 3

executeMethod · 0.95
_executeMultiMethod · 0.45
_executePipelineMethod · 0.45

Tested by

no test coverage detected