25 lines
708 B
JavaScript
25 lines
708 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.default = {
|
|
NOT_KEYED_COMMAND: true,
|
|
IS_READ_ONLY: true,
|
|
/**
|
|
* Extracts the key names and access flags from a Redis command
|
|
* @param parser - The Redis command parser
|
|
* @param args - Command arguments to analyze
|
|
*/
|
|
parseCommand(parser, args) {
|
|
parser.push('COMMAND', 'GETKEYSANDFLAGS');
|
|
parser.push(...args);
|
|
},
|
|
transformReply(reply) {
|
|
return reply.map(entry => {
|
|
const [key, flags] = entry;
|
|
return {
|
|
key,
|
|
flags
|
|
};
|
|
});
|
|
}
|
|
};
|
|
//# sourceMappingURL=COMMAND_GETKEYSANDFLAGS.js.map
|