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

Function parseEvalArguments

packages/client/lib/commands/EVAL.ts:9–24  ·  view source on GitHub ↗
(
  parser: CommandParser,
  script: RedisArgument,
  options?: EvalOptions
)

Source from the content-addressed store, hash-verified

7}
8
9export function parseEvalArguments(
10 parser: CommandParser,
11 script: RedisArgument,
12 options?: EvalOptions
13) {
14 parser.push(script);
15 if (options?.keys) {
16 parser.pushKeysLength(options.keys);
17 } else {
18 parser.push('0');
19 }
20
21 if (options?.arguments) {
22 parser.push(...options.arguments)
23 }
24}
25
26export default {
27 IS_READ_ONLY: false,

Callers 6

parseCommandFunction · 0.90
parseCommandFunction · 0.90
parseCommandFunction · 0.90
parseCommandFunction · 0.90
parseCommandFunction · 0.90
parseCommandFunction · 0.85

Calls 2

pushKeysLengthMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected