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,10 +1,17 @@
|
||||
import { RedisCommandArgument, RedisCommandArguments } from '.';
|
||||
|
||||
export const FIRST_KEY_INDEX = 2;
|
||||
|
||||
interface XGroupCreateOptions {
|
||||
MKSTREAM?: true;
|
||||
}
|
||||
|
||||
export function transformArguments(key: string, group: string, id: string, options?: XGroupCreateOptions): Array<string> {
|
||||
export function transformArguments(
|
||||
key: RedisCommandArgument,
|
||||
group: RedisCommandArgument,
|
||||
id: RedisCommandArgument,
|
||||
options?: XGroupCreateOptions
|
||||
): RedisCommandArguments {
|
||||
const args = ['XGROUP', 'CREATE', key, group, id];
|
||||
|
||||
if (options?.MKSTREAM) {
|
||||
@@ -14,4 +21,4 @@ export function transformArguments(key: string, group: string, id: string, optio
|
||||
return args;
|
||||
}
|
||||
|
||||
export declare function transformReply(): string;
|
||||
export declare function transformReply(): 'OK';
|
||||
|
Reference in New Issue
Block a user