You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
790 B
23 lines
790 B
import { RedisCommandArgument, RedisCommandArguments } from '.';
|
|
export declare const FIRST_KEY_INDEX = 1;
|
|
type MaximumOneOf<T, K extends keyof T = keyof T> = K extends keyof T ? {
|
|
[P in K]?: T[K];
|
|
} & Partial<Record<Exclude<keyof T, K>, never>> : never;
|
|
type SetTTL = MaximumOneOf<{
|
|
EX: number;
|
|
PX: number;
|
|
EXAT: number;
|
|
PXAT: number;
|
|
KEEPTTL: true;
|
|
}>;
|
|
type SetGuards = MaximumOneOf<{
|
|
NX: true;
|
|
XX: true;
|
|
}>;
|
|
interface SetCommonOptions {
|
|
GET?: true;
|
|
}
|
|
export type SetOptions = SetTTL & SetGuards & SetCommonOptions;
|
|
export declare function transformArguments(key: RedisCommandArgument, value: RedisCommandArgument | number, options?: SetOptions): RedisCommandArguments;
|
|
export declare function transformReply(): RedisCommandArgument | null;
|
|
export {};
|
|
|