You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
* Support SORT_RO * move pushSortReadOnlyArgs and SortReadOnlyOptions to generic-transformers * clean code Co-authored-by: leibale <leibale1998@gmail.com>
18 lines
503 B
TypeScript
18 lines
503 B
TypeScript
import { RedisCommandArguments } from '.';
|
|
import { SortOptions } from './generic-transformers';
|
|
import { transformArguments as transformSortArguments } from './SORT';
|
|
|
|
export const FIRST_KEY_INDEX = 1;
|
|
|
|
export function transformArguments(
|
|
source: string,
|
|
destination: string,
|
|
options?: SortOptions
|
|
): RedisCommandArguments {
|
|
const args = transformSortArguments(source, options);
|
|
args.push('STORE', destination);
|
|
return args;
|
|
}
|
|
|
|
export declare function transformReply(): number;
|