-
Notifications
You must be signed in to change notification settings - Fork 41
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
Support multi-key operations #49
Comments
Got, I'll try to implemented this on weekend. |
I have a question, looks like the ascii protocol does not support multiple operations like |
Hmm, I thought the text protocol also supported pipelining requests just fine? Specifically, you can send off multiple requests in rapid succession, and then only wait for them after they've all been sent, no? |
Pipelining works with ASCII with some caveats; if there's an error in the protocol (bad key/something) you end up with a protocol desync and the rest of the commands sent in the pipeline could error. This is worse with if the 'noreply' option is used since that suppresses most errors. It does work differently than 'get', which has a specific mechanism for pipelining: |
@dormando I think I was trying to implement |
See PR #110 :-) |
In memcached you can pipeline sending multiple operations to use the network more efficiently. We already have
Client::gets
, butset
,delete
, andincrement
can also be pipelined this way. For high-performance applications, doing this kind of request batching is essential, so it'd be awesome to see support for these added to this crate! The oldmemcached-rs
crate had support for this in theMultiOperation
trait, and the implementation is pretty straightforward (and similar togets
).The text was updated successfully, but these errors were encountered: