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