1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00
Files
node-redis/packages/time-series/lib/commands/RANGE.ts
2021-11-29 08:52:14 -05:00

22 lines
526 B
TypeScript

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.RANGE'],
fromTimestamp,
toTimestamp,
options
);
}
export { transformRangeReply } from '.';