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/ZDIFFSTORE.ts
2021-06-15 19:27:41 -04:00

18 lines
463 B
TypeScript

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