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

Function parseLMPopArguments

packages/client/lib/commands/LMPOP.ts:9–21  ·  view source on GitHub ↗
(
  parser: CommandParser,
  keys: RedisVariadicArgument,
  side: ListSide,
  options?: LMPopOptions
)

Source from the content-addressed store, hash-verified

7}
8
9export function parseLMPopArguments(
10 parser: CommandParser,
11 keys: RedisVariadicArgument,
12 side: ListSide,
13 options?: LMPopOptions
14) {
15 parser.pushKeysLength(keys);
16 parser.push(side);
17
18 if (options?.COUNT !== undefined) {
19 parser.push('COUNT', options.COUNT.toString());
20 }
21}
22
23export type LMPopArguments = Tail<Parameters<typeof parseLMPopArguments>>;
24

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