You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-10 11:43:01 +03:00
25 lines
582 B
TypeScript
25 lines
582 B
TypeScript
export const FIRST_KEY_INDEX = 1;
|
|
|
|
export const IS_READ_ONLY = true;
|
|
|
|
export interface LPosOptions {
|
|
RANK?: number;
|
|
MAXLEN?: number;
|
|
}
|
|
|
|
export function transformArguments(key: string, element: string, options?: LPosOptions): Array<string> {
|
|
const args = ['LPOS', key, element];
|
|
|
|
if (typeof options?.RANK === 'number') {
|
|
args.push('RANK', options.RANK.toString());
|
|
}
|
|
|
|
if (typeof options?.MAXLEN === 'number') {
|
|
args.push('MAXLEN', options.MAXLEN.toString());
|
|
}
|
|
|
|
return args;
|
|
}
|
|
|
|
export declare function transformReply(): number | null;
|