You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
close #2192 close #2193 close #2194 close #2195 close #2196 close #2197 close #2198 - support for TimeSeries 1.8 (#2200)
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import { pushRetentionArgument, Labels, pushLabelsArgument } from '.';
|
||||
import { pushRetentionArgument, Labels, pushLabelsArgument, TimeSeriesDuplicatePolicies, pushChunkSizeArgument, pushDuplicatePolicy } from '.';
|
||||
|
||||
export const FIRST_KEY_INDEX = 1;
|
||||
|
||||
interface AlterOptions {
|
||||
RETENTION?: number;
|
||||
CHUNK_SIZE?: number;
|
||||
DUPLICATE_POLICY?: TimeSeriesDuplicatePolicies;
|
||||
LABELS?: Labels;
|
||||
}
|
||||
|
||||
@@ -12,6 +14,10 @@ export function transformArguments(key: string, options?: AlterOptions): Array<s
|
||||
|
||||
pushRetentionArgument(args, options?.RETENTION);
|
||||
|
||||
pushChunkSizeArgument(args, options?.CHUNK_SIZE);
|
||||
|
||||
pushDuplicatePolicy(args, options?.DUPLICATE_POLICY);
|
||||
|
||||
pushLabelsArgument(args, options?.LABELS);
|
||||
|
||||
return args;
|
||||
|
Reference in New Issue
Block a user