1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00
Files
node-redis/packages/client/lib/commands/XREVRANGE.ts

16 lines
419 B
TypeScript

interface XRangeRevOptions {
COUNT?: number;
}
export function transformArguments(key: string, start: string, end: string, options?: XRangeRevOptions): Array<string> {
const args = ['XREVRANGE', key, start, end];
if (options?.COUNT) {
args.push('COUNT', options.COUNT.toString());
}
return args;
}
export { transformReplyStreamMessages as transformReply } from './generic-transformers';