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
482 B
TypeScript
23 lines
482 B
TypeScript
import { transformReplyStringNull } from './generic-transformers';
|
|
|
|
export type LMoveSide = 'LEFT' | 'RIGHT';
|
|
|
|
export const FIRST_KEY_INDEX = 1;
|
|
|
|
export function transformArguments(
|
|
source: string,
|
|
destination: string,
|
|
sourceSide: LMoveSide,
|
|
destinationSide: LMoveSide
|
|
): Array<string> {
|
|
return [
|
|
'LMOVE',
|
|
source,
|
|
destination,
|
|
sourceSide,
|
|
destinationSide,
|
|
];
|
|
}
|
|
|
|
export const transformReply = transformReplyStringNull;
|