-first commit
This commit is contained in:
23
node_modules/@redis/search/dist/lib/commands/CONFIG_GET.js
generated
vendored
Normal file
23
node_modules/@redis/search/dist/lib/commands/CONFIG_GET.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = {
|
||||
NOT_KEYED_COMMAND: true,
|
||||
IS_READ_ONLY: true,
|
||||
/**
|
||||
* Gets a RediSearch configuration option value.
|
||||
* @param parser - The command parser
|
||||
* @param option - The name of the configuration option to retrieve
|
||||
*/
|
||||
parseCommand(parser, option) {
|
||||
parser.push('FT.CONFIG', 'GET', option);
|
||||
},
|
||||
transformReply(reply) {
|
||||
const transformedReply = Object.create(null);
|
||||
for (const item of reply) {
|
||||
const [key, value] = item;
|
||||
transformedReply[key.toString()] = value;
|
||||
}
|
||||
return transformedReply;
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=CONFIG_GET.js.map
|
||||
Reference in New Issue
Block a user