You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-17 19:41:06 +03:00
clean code
This commit is contained in:
@@ -1,14 +1,20 @@
|
||||
import { RedisCommandArguments } from '.';
|
||||
import { transformZMPopArguments, ZMPopOptions } from './generic-transformers';
|
||||
import { RedisCommandArgument, RedisCommandArguments } from '.';
|
||||
import { SortedSetSide, transformZMPopArguments, ZMPopOptions } from './generic-transformers';
|
||||
|
||||
export const FIRST_KEY_INDEX = 3;
|
||||
|
||||
export function transformArguments(
|
||||
timeout: number,
|
||||
keys: string | Array<string>,
|
||||
options: ZMPopOptions
|
||||
keys: RedisCommandArgument | Array<RedisCommandArgument>,
|
||||
side: SortedSetSide,
|
||||
options?: ZMPopOptions
|
||||
): RedisCommandArguments {
|
||||
return transformZMPopArguments(['BZMPOP', timeout.toString()], keys, options);
|
||||
return transformZMPopArguments(
|
||||
['BZMPOP', timeout.toString()],
|
||||
keys,
|
||||
side,
|
||||
options
|
||||
);
|
||||
}
|
||||
|
||||
export { transformReply } from './ZMPOP';
|
||||
|
Reference in New Issue
Block a user