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

23 lines
771 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
CACHEABLE: true,
IS_READ_ONLY: true,
/**
* Performs read-only bitfield integer operations on strings
* @param parser - The Redis command parser
* @param key - The key holding the string
* @param operations - Array of GET operations to perform on the bitfield
*/
parseCommand(parser, key, operations) {
parser.push('BITFIELD_RO');
parser.pushKey(key);
for (const operation of operations) {
parser.push('GET');
parser.push(operation.encoding);
parser.push(operation.offset.toString());
}
},
transformReply: undefined
};
//# sourceMappingURL=BITFIELD_RO.js.map