You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
22 lines
592 B
TypeScript
22 lines
592 B
TypeScript
import { LPosOptions } from './LPOS';
|
|
|
|
export { FIRST_KEY_INDEX, IS_READ_ONLY } from './LPOS';
|
|
|
|
export function transformArguments(key: string, element: string, count: number, options?: LPosOptions): Array<string> {
|
|
const args = ['LPOS', key, element];
|
|
|
|
if (typeof options?.RANK === 'number') {
|
|
args.push('RANK', options.RANK.toString());
|
|
}
|
|
|
|
args.push('COUNT', count.toString());
|
|
|
|
if (typeof options?.MAXLEN === 'number') {
|
|
args.push('MAXLEN', options.MAXLEN.toString());
|
|
}
|
|
|
|
return args;
|
|
}
|
|
|
|
export declare function transformReply(): Array<number>;
|