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

Function parseCommand

packages/client/lib/commands/BLPOP.ts:7–11  ·  view source on GitHub ↗
(parser: CommandParser, key: RedisVariadicArgument, timeout: number)

Source from the content-addressed store, hash-verified

5export default {
6 IS_READ_ONLY: true,
7 parseCommand(parser: CommandParser, key: RedisVariadicArgument, timeout: number) {
8 parser.push('BLPOP');
9 parser.pushKeys(key);
10 parser.push(timeout.toString());
11 },
12 transformReply(reply: UnwrapReply<NullReply | TuplesReply<[BlobStringReply, BlobStringReply]>>) {
13 if (reply === null) return null;
14

Callers

nothing calls this directly

Calls 3

pushKeysMethod · 0.80
toStringMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected