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

23 lines
725 B
JavaScript

"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