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

33 lines
977 B
JavaScript
Raw Normal View History

2025-11-11 12:36:06 +07:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
NOT_KEYED_COMMAND: true,
IS_READ_ONLY: true,
/**
* Returns ACL information about a specific user
* @param parser - The Redis command parser
* @param username - Username to get information for
*/
parseCommand(parser, username) {
parser.push('ACL', 'GETUSER', username);
},
transformReply: {
2: (reply) => ({
flags: reply[1],
passwords: reply[3],
commands: reply[5],
keys: reply[7],
channels: reply[9],
selectors: reply[11]?.map(selector => {
const inferred = selector;
return {
commands: inferred[1],
keys: inferred[3],
channels: inferred[5]
};
})
}),
3: undefined
}
};
//# sourceMappingURL=ACL_GETUSER.js.map