1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-10 11:43:01 +03:00
Files
node-redis/lib/commands/ACL_SETUSER.ts

16 lines
393 B
TypeScript

import { transformReplyString } from './generic-transformers';
export function transformArguments(username: string, rule: string | Array<string>): Array<string> {
const args = ['ACL', 'SETUSER', username];
if (typeof rule === 'string') {
args.push(rule);
} else {
args.push(...rule);
}
return args;
}
export const transformReply = transformReplyString;