NodeRedis/node-redis

View on GitHub
packages/time-series/lib/commands/MRANGE_WITHLABELS.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { RedisCommandArguments } from '@redis/client/dist/lib/commands';
import { Timestamp, MRangeWithLabelsOptions, pushMRangeWithLabelsArguments } from '.';

export const IS_READ_ONLY = true;

export function transformArguments(
    fromTimestamp: Timestamp,
    toTimestamp: Timestamp,
    filters: string | Array<string>,
    options?: MRangeWithLabelsOptions
): RedisCommandArguments {
    return pushMRangeWithLabelsArguments(
        ['TS.MRANGE'],
        fromTimestamp,
        toTimestamp,
        filters,
        options
    );
}

export { transformMRangeWithLabelsReply as transformReply } from '.';