NodeRedis/node-redis

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

Summary

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

export const FIRTS_KEY_INDEX = 1;

export function transformArguments(key: string, fromTimestamp: Timestamp, toTimestamp: Timestamp): RedisCommandArguments {
    return [
        'TS.DEL',
        key,
        transformTimestampArgument(fromTimestamp),
        transformTimestampArgument(toTimestamp)
    ];
}

export declare function transformReply(): number;