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

Pipelined transaction-handling: watch + get & multi + set #3744

Open
sebdehne opened this issue Feb 27, 2024 · 0 comments
Open

Pipelined transaction-handling: watch + get & multi + set #3744

sebdehne opened this issue Feb 27, 2024 · 0 comments

Comments

@sebdehne
Copy link

Pipelined transaction

A typical transaction looks like:

WATCH foo
GET foo
MULTI
SET foo bar
EXEC

(five round trips if executed separately)

But it would be more efficient to be able to pipeline those commands like:

WATCH foo\r\nGET foo\r\n

and then

MULTI\r\nSET foo bar\r\nEXEC

resulting in just two round trips. The protocol supports this, but I could not find any support in Jedis for this. Is it possible to add?

Thanks

@sazzad16 sazzad16 modified the milestone: 5.2.0 Mar 24, 2024
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

No branches or pull requests

2 participants