@valkey/client
Version:
The source code and documentation for this package are in the main [node-redis](https://github.com/redis/node-redis) repo.
19 lines (18 loc) • 531 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformReply = exports.transformArguments = void 0;
function transformArguments(username) {
return ["ACL", "GETUSER", username];
}
exports.transformArguments = transformArguments;
function transformReply(reply) {
return {
flags: reply[1],
passwords: reply[3],
commands: reply[5],
keys: reply[7],
channels: reply[9],
selectors: reply[11],
};
}
exports.transformReply = transformReply;
;