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

Function execute

packages/client/lib/cluster/multi-command.spec.ts:14–21  ·  view source on GitHub ↗
(
      firstKey: RedisArgument | undefined,
      _isReadonly: boolean | undefined,
      queue: Array<unknown>
    )

Source from the content-addressed store, hash-verified

12 function setup(routing: RedisArgument | undefined, keyPrefix: RedisArgument | undefined) {
13 const routedKeys: Array<RedisArgument | undefined> = [];
14 const execute = (
15 firstKey: RedisArgument | undefined,
16 _isReadonly: boolean | undefined,
17 queue: Array<unknown>
18 ) => {
19 routedKeys.push(firstKey);
20 return Promise.resolve(queue.map(() => null));
21 };
22
23 const multi = new RedisClusterMultiCommand(
24 // eslint-disable-next-line @typescript-eslint/no-explicit-any -- minimal execute stub

Callers

nothing calls this directly

Calls 2

resolveMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected