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/DEL.ts

16 lines
354 B
TypeScript

import { transformReplyNumber } from './generic-transformers';
export function transformArguments(keys: string | Array<string>): Array<string> {
const args = ['DEL'];
if (typeof keys === 'string') {
args.push(keys);
} else {
args.push(...keys);
}
return args;
}
export const transformReply = transformReplyNumber;