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

Expose the cas_id in binary protocol. #80

Open
letmutx opened this issue Dec 26, 2019 · 4 comments
Open

Expose the cas_id in binary protocol. #80

letmutx opened this issue Dec 26, 2019 · 4 comments

Comments

@letmutx
Copy link
Collaborator

letmutx commented Dec 26, 2019

This will be useful for letmutx/macgyver-lock-rs#10

@letmutx
Copy link
Collaborator Author

letmutx commented Dec 29, 2019

One thought is that we could have a BinaryClient which works only with binary protocol and have methods that would take cas_id for all operations as necessary. @aisk thoughts?

@aisk
Copy link
Owner

aisk commented Dec 30, 2019

I think it's cool to have this method, and for ASCII protocol, seems we can using the mget related API to implement it?

https://github.com/memcached/memcached/blob/master/doc/protocol.txt#L472

@aisk
Copy link
Owner

aisk commented Dec 30, 2019

Sorry maybe I had some misunderstanding, what you want is a single function to get a cas_id from a key without the total value body? Or something else?

@letmutx
Copy link
Collaborator Author

letmutx commented Dec 30, 2019

Yes, metaget and metaset seem to be similar to the ASCII commands to the binary commands I was talking about.

Implementing the feature I want in the binary protocol is much less work with the current code we have, though.

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