packages/time-series/lib/commands/DEL.ts
raw| 1 | import { RedisCommandArguments } from '@redis/client/dist/lib/commands'; |
| 2 | import { Timestamp, transformTimestampArgument } from '.'; |
| 3 | |
| 4 | export const FIRTS_KEY_INDEX = 1; |
| 5 | |
| 6 | export function transformArguments(key: string, fromTimestamp: Timestamp, toTimestamp: Timestamp): RedisCommandArguments { |
| 7 | return [ |
| 8 | 'TS.DEL', |
| 9 | key, |
| 10 | transformTimestampArgument(fromTimestamp), |
| 11 | transformTimestampArgument(toTimestamp) |
| 12 | ]; |
| 13 | } |
| 14 | |
| 15 | export declare function transformReply(): number; |