You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-03 04:01:40 +03:00
* Support SORT_RO * move pushSortReadOnlyArgs and SortReadOnlyOptions to generic-transformers * clean code Co-authored-by: leibale <leibale1998@gmail.com>
16 lines
410 B
TypeScript
16 lines
410 B
TypeScript
import { RedisCommandArguments } from '.';
|
|
import { pushSortArguments, SortOptions } from "./generic-transformers";
|
|
|
|
export const FIRST_KEY_INDEX = 1;
|
|
|
|
export const IS_READ_ONLY = true;
|
|
|
|
export function transformArguments(
|
|
key: string,
|
|
options?: SortOptions
|
|
): RedisCommandArguments {
|
|
return pushSortArguments(['SORT_RO', key], options);
|
|
}
|
|
|
|
export declare function transformReply(): Array<string>;
|