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/XGROUP_CREATE.ts

18 lines
407 B
TypeScript

export const FIRST_KEY_INDEX = 2;
interface XGroupCreateOptions {
MKSTREAM?: true;
}
export function transformArguments(key: string, group: string, id: string, options?: XGroupCreateOptions): Array<string> {
const args = ['XGROUP', 'CREATE', key, group, id];
if (options?.MKSTREAM) {
args.push('MKSTREAM');
}
return args;
}
export declare function transformReply(): string;