Files
micro-service-api/node_modules/@redis/client/dist/lib/commands/RENAMENX.js
2025-11-11 12:36:06 +07:00

19 lines
561 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
IS_READ_ONLY: true,
/**
* Constructs the RENAMENX command
*
* @param parser - The command parser
* @param key - The key to rename
* @param newKey - The new key name, if it doesn't exist
* @see https://redis.io/commands/renamenx/
*/
parseCommand(parser, key, newKey) {
parser.push('RENAMENX');
parser.pushKeys([key, newKey]);
},
transformReply: undefined
};
//# sourceMappingURL=RENAMENX.js.map