mirror of https://github.com/go-redis/redis.git
Fix XGroup first pos key (#2983)
This commit is contained in:
parent
90c7a414ac
commit
fa9edecebc
|
@ -178,36 +178,42 @@ func (c cmdable) XReadStreams(ctx context.Context, streams ...string) *XStreamSl
|
||||||
|
|
||||||
func (c cmdable) XGroupCreate(ctx context.Context, stream, group, start string) *StatusCmd {
|
func (c cmdable) XGroupCreate(ctx context.Context, stream, group, start string) *StatusCmd {
|
||||||
cmd := NewStatusCmd(ctx, "xgroup", "create", stream, group, start)
|
cmd := NewStatusCmd(ctx, "xgroup", "create", stream, group, start)
|
||||||
|
cmd.SetFirstKeyPos(2)
|
||||||
_ = c(ctx, cmd)
|
_ = c(ctx, cmd)
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c cmdable) XGroupCreateMkStream(ctx context.Context, stream, group, start string) *StatusCmd {
|
func (c cmdable) XGroupCreateMkStream(ctx context.Context, stream, group, start string) *StatusCmd {
|
||||||
cmd := NewStatusCmd(ctx, "xgroup", "create", stream, group, start, "mkstream")
|
cmd := NewStatusCmd(ctx, "xgroup", "create", stream, group, start, "mkstream")
|
||||||
|
cmd.SetFirstKeyPos(2)
|
||||||
_ = c(ctx, cmd)
|
_ = c(ctx, cmd)
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c cmdable) XGroupSetID(ctx context.Context, stream, group, start string) *StatusCmd {
|
func (c cmdable) XGroupSetID(ctx context.Context, stream, group, start string) *StatusCmd {
|
||||||
cmd := NewStatusCmd(ctx, "xgroup", "setid", stream, group, start)
|
cmd := NewStatusCmd(ctx, "xgroup", "setid", stream, group, start)
|
||||||
|
cmd.SetFirstKeyPos(2)
|
||||||
_ = c(ctx, cmd)
|
_ = c(ctx, cmd)
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c cmdable) XGroupDestroy(ctx context.Context, stream, group string) *IntCmd {
|
func (c cmdable) XGroupDestroy(ctx context.Context, stream, group string) *IntCmd {
|
||||||
cmd := NewIntCmd(ctx, "xgroup", "destroy", stream, group)
|
cmd := NewIntCmd(ctx, "xgroup", "destroy", stream, group)
|
||||||
|
cmd.SetFirstKeyPos(2)
|
||||||
_ = c(ctx, cmd)
|
_ = c(ctx, cmd)
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c cmdable) XGroupCreateConsumer(ctx context.Context, stream, group, consumer string) *IntCmd {
|
func (c cmdable) XGroupCreateConsumer(ctx context.Context, stream, group, consumer string) *IntCmd {
|
||||||
cmd := NewIntCmd(ctx, "xgroup", "createconsumer", stream, group, consumer)
|
cmd := NewIntCmd(ctx, "xgroup", "createconsumer", stream, group, consumer)
|
||||||
|
cmd.SetFirstKeyPos(2)
|
||||||
_ = c(ctx, cmd)
|
_ = c(ctx, cmd)
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c cmdable) XGroupDelConsumer(ctx context.Context, stream, group, consumer string) *IntCmd {
|
func (c cmdable) XGroupDelConsumer(ctx context.Context, stream, group, consumer string) *IntCmd {
|
||||||
cmd := NewIntCmd(ctx, "xgroup", "delconsumer", stream, group, consumer)
|
cmd := NewIntCmd(ctx, "xgroup", "delconsumer", stream, group, consumer)
|
||||||
|
cmd.SetFirstKeyPos(2)
|
||||||
_ = c(ctx, cmd)
|
_ = c(ctx, cmd)
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue