You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
add buffer support to a bunch of commands
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
import { RedisCommandArgument, RedisCommandArguments } from '.';
|
||||
|
||||
export const FIRST_KEY_INDEX = 2;
|
||||
|
||||
export function transformArguments(key: string, group: string, consumer: string): Array<string> {
|
||||
export function transformArguments(
|
||||
key: RedisCommandArgument,
|
||||
group: RedisCommandArgument,
|
||||
consumer: RedisCommandArgument
|
||||
): RedisCommandArguments {
|
||||
return ['XGROUP', 'CREATECONSUMER', key, group, consumer];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user