import { Command } from '../RESP/types'; import EVAL, { parseEvalArguments } from './EVAL'; export default { IS_READ_ONLY: false, /** * Executes a Lua script server side using the script's SHA1 digest * @param parser - The Redis command parser * @param sha1 - SHA1 digest of the script * @param options - Script execution options including keys and arguments */ parseCommand(...args: Parameters) { args[0].push('EVALSHA'); parseEvalArguments(...args); }, transformReply: EVAL.transformReply } as const satisfies Command;