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:
21
packages/time-series/lib/commands/REVRANGE.ts
Normal file
21
packages/time-series/lib/commands/REVRANGE.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { RedisCommandArguments } from '@node-redis/client/dist/lib/commands';
|
||||
import { RangeOptions, Timestamp, pushRangeArguments } from '.';
|
||||
|
||||
export const FIRST_KEY_INDEX = 1;
|
||||
|
||||
export const IS_READ_ONLY = true;
|
||||
|
||||
export function transformArguments(
|
||||
fromTimestamp: Timestamp,
|
||||
toTimestamp: Timestamp,
|
||||
options?: RangeOptions
|
||||
): RedisCommandArguments {
|
||||
return pushRangeArguments(
|
||||
['TS.REVRANGE'],
|
||||
fromTimestamp,
|
||||
toTimestamp,
|
||||
options
|
||||
);
|
||||
}
|
||||
|
||||
export { transformRangeReply } from '.';
|
Reference in New Issue
Block a user