NodeRedis/node-redis

View on GitHub
packages/client/lib/commands/EVAL_RO.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Command } from '../RESP/types';
import EVAL, { parseEvalArguments } from './EVAL';

export default {
  IS_READ_ONLY: true,
  parseCommand(...args: Parameters<typeof parseEvalArguments>) {
    args[0].push('EVAL_RO');
    parseEvalArguments(...args);
  },
  transformReply: EVAL.transformReply
} as const satisfies Command;