You've already forked node-redis
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:
@@ -1,4 +1,4 @@
|
||||
import { TuplesObject } from './generic-transformers';
|
||||
import { RedisCommandArgument, RedisCommandArguments } from '.';
|
||||
|
||||
export const FIRST_KEY_INDEX = 1;
|
||||
|
||||
@@ -9,10 +9,15 @@ interface XAddOptions {
|
||||
strategyModifier?: '=' | '~';
|
||||
threshold: number;
|
||||
limit?: number;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export function transformArguments(key: string, id: string, message: TuplesObject, options?: XAddOptions): Array<string> {
|
||||
export function transformArguments(
|
||||
key: RedisCommandArgument,
|
||||
id: RedisCommandArgument,
|
||||
message: Record<string, RedisCommandArgument>,
|
||||
options?: XAddOptions
|
||||
): RedisCommandArguments {
|
||||
const args = ['XADD', key];
|
||||
|
||||
if (options?.NOMKSTREAM) {
|
||||
|
Reference in New Issue
Block a user