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

Function parseZMPopArguments

packages/client/lib/commands/ZMPOP.ts:17–30  ·  view source on GitHub ↗
(
  parser: CommandParser,
  keys: RedisVariadicArgument,
  side: SortedSetSide,
  options?: ZMPopOptions
)

Source from the content-addressed store, hash-verified

15]>;
16
17export function parseZMPopArguments(
18 parser: CommandParser,
19 keys: RedisVariadicArgument,
20 side: SortedSetSide,
21 options?: ZMPopOptions
22) {
23 parser.pushKeysLength(keys);
24
25 parser.push(side);
26
27 if (options?.COUNT) {
28 parser.push('COUNT', options.COUNT.toString());
29 }
30}
31
32export type ZMPopArguments = Tail<Parameters<typeof parseZMPopArguments>>;
33

Callers 2

parseCommandFunction · 0.90
parseCommandFunction · 0.85

Calls 3

pushKeysLengthMethod · 0.80
toStringMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected