You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-03 04:01:40 +03:00
* Support ZINTERCARD and SINTERCARD * clean code * clean code Co-authored-by: leibale <leibale1998@gmail.com>
22 lines
543 B
TypeScript
22 lines
543 B
TypeScript
import { RedisCommandArgument, RedisCommandArguments } from '.';
|
|
import { pushVerdictArgument } from './generic-transformers';
|
|
|
|
export const FIRST_KEY_INDEX = 2;
|
|
|
|
export const IS_READ_ONLY = true;
|
|
|
|
export function transformArguments(
|
|
keys: Array<RedisCommandArgument> | RedisCommandArgument,
|
|
limit?: number
|
|
): RedisCommandArguments {
|
|
const args = pushVerdictArgument(['ZINTERCARD'], keys);
|
|
|
|
if (limit) {
|
|
args.push('LIMIT', limit.toString());
|
|
}
|
|
|
|
return args;
|
|
}
|
|
|
|
export declare function transformReply(): number;
|