-
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
get vs gets #130
Comments
Yes, we are using a wrong name for multiple gets. But I think the memcache protocol command name may not be the same as the client library function name. For example, implement a So we should have three functions:
But we wrongly used the |
It's been a while since I looked at this (over a year) so might get some details wrong by just lightly refreshing my memory. The documentation for If it's intended to only be a multi-key get (eg: The only option that maintains compatibility would be leaving |
It appears that the
get
andgets
commands implemented in this crate differ slightly from the protocolThe
get
method should take one or more keys. Thegets
method is about returning the current CAS value as part of the retrieval command and also operates on one or more keys.Please see the memcache protocol spec for the definition of these commands.
If I'm understanding the implementation correctly, the
gets
method is correct and should also retrieve the CAS values, but theget
method is not fully implemented as it should support requesting more than one key in a single call. I believe the current docs mistakenly direct users towards thegets
function for multi-key retrieval even though that is not the difference betweenget
andgets
.The text was updated successfully, but these errors were encountered: