You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
init time series
This commit is contained in:
15
packages/time-series/lib/commands/DEL.ts
Normal file
15
packages/time-series/lib/commands/DEL.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { RedisCommandArguments } from '@node-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;
|
Reference in New Issue
Block a user