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
441 B
TypeScript
23 lines
441 B
TypeScript
import { transformReplyNumber } from './generic-transformers';
|
|
|
|
export const FIRST_KEY_INDEX = 1;
|
|
|
|
type LInsertPosition = 'BEFORE' | 'AFTER';
|
|
|
|
export function transformArguments(
|
|
key: string,
|
|
position: LInsertPosition,
|
|
pivot: string,
|
|
element: string
|
|
): Array<string> {
|
|
return [
|
|
'LINSERT',
|
|
key,
|
|
position,
|
|
pivot,
|
|
element
|
|
];
|
|
}
|
|
|
|
export const transformReply = transformReplyNumber;
|