1
0
mirror of https://github.com/redis/go-redis.git synced 2025-06-14 01:21:30 +03:00

support "XINFO CONSUMERS" (#1649)

* support "XINFO CONSUMERS"

* add "xinfo" test
This commit is contained in:
kkkbird
2021-02-09 20:46:26 +08:00
committed by GitHub
parent 27df2313cd
commit f594401261
3 changed files with 208 additions and 0 deletions

View File

@ -1752,6 +1752,12 @@ func (c cmdable) XTrimApprox(ctx context.Context, key string, maxLen int64) *Int
return cmd
}
func (c cmdable) XInfoConsumers(ctx context.Context, key string, group string) *XInfoConsumersCmd {
cmd := NewXInfoConsumersCmd(ctx, key, group)
_ = c(ctx, cmd)
return cmd
}
func (c cmdable) XInfoGroups(ctx context.Context, key string) *XInfoGroupsCmd {
cmd := NewXInfoGroupsCmd(ctx, key)
_ = c(ctx, cmd)