You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
23 lines
568 B
TypeScript
23 lines
568 B
TypeScript
import { Command } from '../RESP/types';
|
|
import { transformLMPopArguments, LMPopOptions, ListSide, RedisVariadicArgument } from './generic-transformers';
|
|
import LMPOP from './LMPOP';
|
|
|
|
export default {
|
|
FIRST_KEY_INDEX: 3,
|
|
IS_READ_ONLY: false,
|
|
transformArguments(
|
|
timeout: number,
|
|
keys: RedisVariadicArgument,
|
|
side: ListSide,
|
|
options?: LMPopOptions
|
|
) {
|
|
return transformLMPopArguments(
|
|
['BLMPOP', timeout.toString()],
|
|
keys,
|
|
side,
|
|
options
|
|
);
|
|
},
|
|
transformReply: LMPOP.transformReply
|
|
} as const satisfies Command;
|