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

UnifiedJedis - can't use transaction and watch together #3662

Closed
veselov opened this issue Dec 23, 2023 · 0 comments · Fixed by #3804
Closed

UnifiedJedis - can't use transaction and watch together #3662

veselov opened this issue Dec 23, 2023 · 0 comments · Fixed by #3804
Milestone

Comments

@veselov
Copy link
Contributor

veselov commented Dec 23, 2023

I've switched to using UnifiedJedis in my application, as I needed module commands.
I replaced using my own connection pool by having UnifiedJedis create and manage one.

One thing that I found lacking - is an ability to run a transaction with watches.

Watches have to be done on a connection, before multi is executed.
But UnifiedJedis only lets you get a transaction where multi has already been executed.

I didn't find any other way of making use of watch/multi, except for creating transactions on a connection that I somehow must obtain outside UnifiedJedis (and therefore can't use the latter as a single connection pool source).

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 a pull request may close this issue.

2 participants