You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
WIP
This commit is contained in:
@@ -1,21 +1,11 @@
|
||||
import { RedisCommandArguments } from '@redis/client/dist/lib/commands';
|
||||
import { Timestamp, MRangeWithLabelsOptions, pushMRangeWithLabelsArguments, Filter } from '.';
|
||||
import { Command } from '@redis/client/dist/lib/RESP/types';
|
||||
import { transformMRangeWithLabelsArguments } from './MRANGE_WITHLABELS';
|
||||
|
||||
export const IS_READ_ONLY = true;
|
||||
|
||||
export function transformArguments(
|
||||
fromTimestamp: Timestamp,
|
||||
toTimestamp: Timestamp,
|
||||
filters: Filter,
|
||||
options?: MRangeWithLabelsOptions
|
||||
): RedisCommandArguments {
|
||||
return pushMRangeWithLabelsArguments(
|
||||
['TS.MREVRANGE'],
|
||||
fromTimestamp,
|
||||
toTimestamp,
|
||||
filters,
|
||||
options
|
||||
);
|
||||
}
|
||||
|
||||
export { transformMRangeWithLabelsReply as transformReply } from '.';
|
||||
export default {
|
||||
FIRST_KEY_INDEX: undefined,
|
||||
IS_READ_ONLY: true,
|
||||
transformArguments: transformMRangeWithLabelsArguments.bind(undefined, 'TS.MREVRANGE'),
|
||||
// TODO
|
||||
// export { transformMRangeWithLabelsReply as transformReply } from '.';
|
||||
transformReply: undefined as unknown as () => any
|
||||
} as const satisfies Command;
|
||||
|
Reference in New Issue
Block a user