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

Add support for optimistic locking / check-and-set in the new Redis API #27381

Merged

Conversation

cescoffier
Copy link
Member

This PR adds a new variant of the withTransaction method allowing optimistic locking patterns such as updateIfExist, or a zpop implementation. More details on https://redis.io/docs/manual/transactions/#optimistic-locking-using-check-and-set

Copy link
Member

@machi1990 machi1990 left a comment

Choose a reason for hiding this comment

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

lgtm

Quarkus Documentation automation moved this from To do to Reviewer approved Aug 22, 2022
@cescoffier cescoffier merged commit 041bf0c into quarkusio:main Aug 22, 2022
Quarkus Documentation automation moved this from Reviewer approved to Done Aug 22, 2022
@quarkus-bot quarkus-bot bot added this to the 2.13 - main milestone Aug 22, 2022
@cescoffier cescoffier deleted the redis-optimistic-locking-construct branch August 22, 2022 16:20
@gsmet gsmet modified the milestones: 2.13 - main, 2.12.0.Final Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants