Files
micro-service-api/node_modules/@redis/client/dist/lib/commands/ZSCAN.js

26 lines
908 B
JavaScript
Raw Normal View History

2025-11-11 12:36:06 +07:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const SCAN_1 = require("./SCAN");
const generic_transformers_1 = require("./generic-transformers");
exports.default = {
IS_READ_ONLY: true,
/**
* Incrementally iterates over a sorted set.
* @param parser - The Redis command parser.
* @param key - Key of the sorted set.
* @param cursor - Cursor position to start the scan from.
* @param options - Optional scan parameters (COUNT, MATCH, TYPE).
*/
parseCommand(parser, key, cursor, options) {
parser.push('ZSCAN');
parser.pushKey(key);
(0, SCAN_1.parseScanArguments)(parser, cursor, options);
},
transformReply([cursor, rawMembers]) {
return {
cursor,
members: generic_transformers_1.transformSortedSetReply[2](rawMembers)
};
}
};
//# sourceMappingURL=ZSCAN.js.map