Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/sync/node_modules/@redis/client/dist/lib/commands/ drwxr-xr-x | |
| Viewing file: Select action/file-type: "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseZMPopArguments = void 0;
const generic_transformers_1 = require("./generic-transformers");
function parseZMPopArguments(parser, keys, side, options) {
parser.pushKeysLength(keys);
parser.push(side);
if (options?.COUNT) {
parser.push('COUNT', options.COUNT.toString());
}
}
exports.parseZMPopArguments = parseZMPopArguments;
exports.default = {
IS_READ_ONLY: false,
/**
* Removes and returns up to count members with the highest/lowest scores from the first non-empty sorted set.
* @param parser - The Redis command parser.
* @param keys - Keys of the sorted sets to pop from.
* @param side - Side to pop from (MIN or MAX).
* @param options - Optional parameters including COUNT.
*/
parseCommand(parser, keys, side, options) {
parser.push('ZMPOP');
parseZMPopArguments(parser, keys, side, options);
},
transformReply: {
2(reply, preserve, typeMapping) {
return reply === null ? null : {
key: reply[0],
members: reply[1].map(member => {
const [value, score] = member;
return {
value,
score: generic_transformers_1.transformDoubleReply[2](score, preserve, typeMapping)
};
})
};
},
3(reply) {
return reply === null ? null : {
key: reply[0],
members: generic_transformers_1.transformSortedSetReply[3](reply[1])
};
}
}
};
//# sourceMappingURL=ZMPOP.js.map |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0332 ]-- |