1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00

add buffer support to a bunch of commands

This commit is contained in:
leibale
2021-12-15 17:08:50 -05:00
parent 72072f6b1c
commit a1bed9a10f
88 changed files with 821 additions and 381 deletions

View File

@@ -2,6 +2,10 @@ interface XRangeRevOptions {
COUNT?: number;
}
export const FIRST_KEY_INDEX = 1;
export const IS_READ_ONLY = true;
export function transformArguments(key: string, start: string, end: string, options?: XRangeRevOptions): Array<string> {
const args = ['XREVRANGE', key, start, end];
@@ -12,4 +16,4 @@ export function transformArguments(key: string, start: string, end: string, opti
return args;
}
export { transformReplyStreamMessages as transformReply } from './generic-transformers';
export { transformReplyStreamStringMessages as transformReply } from './generic-transformers';