packages/client/lib/commands/RENAMENX.ts
import { CommandParser } from '../client/parser';
import { RedisArgument, NumberReply, Command } from '../RESP/types';
export default {
IS_READ_ONLY: true,
parseCommand(parser: CommandParser, key: RedisArgument, newKey: RedisArgument) {
parser.push('RENAMENX');
parser.pushKeys([key, newKey]);
},
transformReply: undefined as unknown as () => NumberReply
} as const satisfies Command;