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/PFMERGE.ts
2021-06-10 12:43:28 -04:00

18 lines
435 B
TypeScript

import { transformReplyString } from './generic-transformers';
export const FIRST_KEY_INDEX = 1;
export function transformArguments(destination: string, source: string | Array<string>): Array<string> {
const args = ['PFMERGE', destination];
if (typeof source === 'string') {
args.push(source);
} else {
args.push(...source);
}
return args;
}
export const transformReply = transformReplyString;