You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-03 04:01:40 +03:00
21 lines
476 B
TypeScript
21 lines
476 B
TypeScript
import { pushRetentionArgument, Labels, pushLabelsArgument } from '.';
|
|
|
|
export const FIRST_KEY_INDEX = 1;
|
|
|
|
interface AlterOptions {
|
|
RETENTION?: number;
|
|
LABELS?: Labels;
|
|
}
|
|
|
|
export function transformArguments(key: string, options?: AlterOptions): Array<string> {
|
|
const args = ['TS.ALTER', key];
|
|
|
|
pushRetentionArgument(args, options?.RETENTION);
|
|
|
|
pushLabelsArgument(args, options?.LABELS);
|
|
|
|
return args;
|
|
}
|
|
|
|
export declare function transformReply(): 'OK';
|