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

Function parseCommand

packages/client/lib/commands/ARMGET.ts:6–14  ·  view source on GitHub ↗
(parser: CommandParser, key: RedisArgument, indices: number | string | Array<number | string>)

Source from the content-addressed store, hash-verified

4export default {
5 IS_READ_ONLY: true,
6 parseCommand(parser: CommandParser, key: RedisArgument, indices: number | string | Array<number | string>) {
7 parser.push('ARMGET');
8 parser.pushKey(key);
9 if (Array.isArray(indices)) {
10 for (const i of indices) parser.push(i.toString());
11 } else {
12 parser.push(indices.toString());
13 }
14 },
15 transformReply: undefined as unknown as () => ArrayReply<BlobStringReply | NullReply>
16} as const satisfies Command;

Callers

nothing calls this directly

Calls 3

pushKeyMethod · 0.80
toStringMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected