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

@@ -1,3 +1,4 @@
import { RedisCommandArgument, RedisCommandArguments } from '.';
import { pushVerdictArguments } from './generic-transformers';
export const FIRST_KEY_INDEX = 1;
@@ -10,13 +11,13 @@ export interface XClaimOptions {
}
export function transformArguments(
key: string,
group: string,
consumer: string,
key: RedisCommandArgument,
group: RedisCommandArgument,
consumer: RedisCommandArgument,
minIdleTime: number,
id: string | Array<string>,
id: RedisCommandArgument | Array<RedisCommandArgument>,
options?: XClaimOptions
): Array<string> {
): RedisCommandArguments {
const args = ['XCLAIM', key, group, consumer, minIdleTime.toString()];
pushVerdictArguments(args, id);
@@ -43,4 +44,4 @@ export function transformArguments(
return args;
}
export { transformReplyStreamMessages as transformReply } from './generic-transformers';
export { transformReplyStreamStringMessages as transformReply } from './generic-transformers';