Files
micro-service-api/node_modules/@redis/search/dist/lib/commands/SYNDUMP.js

27 lines
773 B
JavaScript
Raw Normal View History

2025-11-11 12:36:06 +07:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
NOT_KEYED_COMMAND: true,
IS_READ_ONLY: true,
/**
* Dumps the contents of a synonym group.
* @param parser - The command parser
* @param index - Name of the index that contains the synonym group
*/
parseCommand(parser, index) {
parser.push('FT.SYNDUMP', index);
},
transformReply: {
2: (reply) => {
const result = {};
let i = 0;
while (i < reply.length) {
const key = reply[i++].toString(), value = reply[i++];
result[key] = value;
}
return result;
},
3: undefined
}
};
//# sourceMappingURL=SYNDUMP.js.map