Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xgroup/xadd/xtrim supports new options #1787

Merged
merged 2 commits into from Jun 15, 2021
Merged

Conversation

monkey92t
Copy link
Collaborator

@monkey92t monkey92t commented Jun 8, 2021

Support command new options:

  • XGROUP Supports the CREATECONSUMER subcommand.

  • XTRIM/XADD Supports the MINID trimming strategy and LIMIT argument

  • XADD Supports the NOMKStREAM argument

XTrim() / XTrimApprox() / XAddArgs.MaxLenApprox mark Deprecated (removed in v9)

Add API:
XGroupCreateConsumer XTrimMaxLen XTrimMaxLenApprox XTrimMinID XTrimMinIDApprox

There is a bug in the limit option of the xadd and xtrim commands(redis/redis#9046).

XGROUP CREATECONSUMER
XTRIM MINID LIMIT
XADD NOMKSTREAM MINID LIMIT

Signed-off-by: monkey <golang@88.com>
Approx bool
Limit int64
ID string
Values interface{}
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps group MaxLen, MinID, and Approx:

    MaxLen int64
    MinID string
    // Approx causes MaxLen and MinID to use "~" matcher (instead of "=").
    Approx bool

Signed-off-by: monkey92t <golang@88.com>
@monkey92t monkey92t merged commit 43ec146 into redis:master Jun 15, 2021
@livingsilver94
Copy link

This fixes #1605 if I'm not wrong.

monkey92t added a commit that referenced this pull request Jun 28, 2021
* Remove OpenTelemetry from the code (but leave redisotel as is) (#1782)

* Add XAutoClaim command (#1780)

* fix typo (#1788)

* xgroup/xadd/xtrim supports new options (#1787)

* support cmd option

XGROUP CREATECONSUMER
XTRIM MINID LIMIT
XADD NOMKSTREAM MINID LIMIT

Signed-off-by: monkey <golang@88.com>

* add XAddArgs.Approx doc

Signed-off-by: monkey92t <golang@88.com>

* Add Bun to readme

* Upgrade the <sorted set> series of commands (#1792)

* Upgrade the <sorted set> series of commands

Signed-off-by: monkey92t <golang@88.com>

* Cancel the Deprecated mark of ZAddNX and ZAddXX

Signed-off-by: monkey92t <golang@88.com>

* Explain the use restrictions of KeepTTL. (#1799)

Signed-off-by: monkey92t <golang@88.com>

* Adjust KeepTTL annotation.

Signed-off-by: monkey92t <golang@88.com>

* the hello command throws possible errors, It may affect the "read timeout" test result.

Signed-off-by: monkey92t <golang@88.com>

Co-authored-by: Vladimir Mihailenco <vladimir.webdev@gmail.com>
Co-authored-by: ericmillin <31105612+ericmillin@users.noreply.github.com>
Co-authored-by: heyanfu <1145291570@qq.com>
mihaitodor added a commit to mihaitodor/benthos that referenced this pull request Feb 19, 2023
Jeffail added a commit to benthosdev/benthos that referenced this pull request Feb 20, 2023
* Deflake Redis rate limit refresh integration test

* Update Redis client libraries

Details:
- https://redis.com/blog/go-redis-official-redis-client/
- redis/go-redis#1787

* Fix race in redis_streams input

* Update changelog

---------

Co-authored-by: Ashley Jeffs <ash@jeffail.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants