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

Function parseCommand

packages/client/lib/commands/GETSET.ts:6–10  ·  view source on GitHub ↗
(parser: CommandParser, key: RedisArgument, value: RedisArgument)

Source from the content-addressed store, hash-verified

4export default {
5 IS_READ_ONLY: true,
6 parseCommand(parser: CommandParser, key: RedisArgument, value: RedisArgument) {
7 parser.push('GETSET');
8 parser.pushKey(key);
9 parser.push(value);
10 },
11 transformReply: undefined as unknown as () => BlobStringReply | NullReply
12} as const satisfies Command;

Callers

nothing calls this directly

Calls 2

pushKeyMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected