@valkey/client
Version:
The source code and documentation for this package are in the main [node-redis](https://github.com/redis/node-redis) repo.
16 lines (15 loc) • 485 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformReply = exports.transformArguments = exports.IS_READ_ONLY = void 0;
exports.IS_READ_ONLY = true;
function transformArguments(args) {
return ["COMMAND", "GETKEYSANDFLAGS", ...args];
}
exports.transformArguments = transformArguments;
function transformReply(reply) {
return reply.map(([key, flags]) => ({
key,
flags,
}));
}
exports.transformReply = transformReply;