You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-10 11:43:01 +03:00
16 lines
535 B
TypeScript
16 lines
535 B
TypeScript
|
|
import { RedisArgument, NumberReply, Command } from '../RESP/types';
|
|
import { pushZInterArguments, ZInterKeyAndWeight, ZInterKeys, ZInterOptions } from './ZINTER';
|
|
|
|
export default {
|
|
FIRST_KEY_INDEX: 1,
|
|
transformArguments(
|
|
destination: RedisArgument,
|
|
keys: ZInterKeys<RedisArgument> | ZInterKeys<ZInterKeyAndWeight>,
|
|
options?: ZInterOptions
|
|
) {
|
|
return pushZInterArguments(['ZINTERSTORE', destination], keys, options);
|
|
},
|
|
transformReply: undefined as unknown as () => NumberReply
|
|
} as const satisfies Command;
|