1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00
Files
node-redis/packages/client/lib/commands/LMOVE.ts
2022-03-08 17:26:13 -05:00

23 lines
531 B
TypeScript

import { RedisCommandArgument, RedisCommandArguments } from '.';
export const FIRST_KEY_INDEX = 1;
export type LMoveSide = 'LEFT' | 'RIGHT';
export function transformArguments(
source: RedisCommandArgument,
destination: RedisCommandArgument,
sourceSide: LMoveSide,
destinationSide: LMoveSide
): RedisCommandArguments {
return [
'LMOVE',
source,
destination,
sourceSide,
destinationSide,
];
}
export declare function transformReply(): RedisCommandArgument | null;