You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
CAE-193: add "IGNORE" options to time series commands (for v4 branch) (#2752)
This commit is contained in:
@@ -6,8 +6,10 @@ import {
|
||||
TimeSeriesDuplicatePolicies,
|
||||
Labels,
|
||||
pushLabelsArgument,
|
||||
pushDuplicatePolicy
|
||||
pushDuplicatePolicy,
|
||||
pushIgnoreArgument
|
||||
} from '.';
|
||||
import { TsIgnoreOptions } from './ADD';
|
||||
|
||||
export const FIRST_KEY_INDEX = 1;
|
||||
|
||||
@@ -17,6 +19,7 @@ interface CreateOptions {
|
||||
CHUNK_SIZE?: number;
|
||||
DUPLICATE_POLICY?: TimeSeriesDuplicatePolicies;
|
||||
LABELS?: Labels;
|
||||
IGNORE?: TsIgnoreOptions;
|
||||
}
|
||||
|
||||
export function transformArguments(key: string, options?: CreateOptions): Array<string> {
|
||||
@@ -32,6 +35,8 @@ export function transformArguments(key: string, options?: CreateOptions): Array<
|
||||
|
||||
pushLabelsArgument(args, options?.LABELS);
|
||||
|
||||
pushIgnoreArgument(args, options?.IGNORE);
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user