-first commit
This commit is contained in:
27
node_modules/@redis/search/dist/lib/commands/SYNDUMP.js
generated
vendored
Normal file
27
node_modules/@redis/search/dist/lib/commands/SYNDUMP.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
"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
|
||||
Reference in New Issue
Block a user