-first commit
This commit is contained in:
20
node_modules/@redis/client/dist/lib/commands/COMMAND_INFO.js
generated
vendored
Normal file
20
node_modules/@redis/client/dist/lib/commands/COMMAND_INFO.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const generic_transformers_1 = require("./generic-transformers");
|
||||
exports.default = {
|
||||
NOT_KEYED_COMMAND: true,
|
||||
IS_READ_ONLY: true,
|
||||
/**
|
||||
* Returns details about specific Redis commands
|
||||
* @param parser - The Redis command parser
|
||||
* @param commands - Array of command names to get information about
|
||||
*/
|
||||
parseCommand(parser, commands) {
|
||||
parser.push('COMMAND', 'INFO', ...commands);
|
||||
},
|
||||
// TODO: This works, as we don't currently handle any of the items returned as a map
|
||||
transformReply(reply) {
|
||||
return reply.map(command => command ? (0, generic_transformers_1.transformCommandReply)(command) : null);
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=COMMAND_INFO.js.map
|
||||
Reference in New Issue
Block a user