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

Require raw client support putIfAbsent feature #330

Open
blacktear23 opened this issue Jan 21, 2022 · 3 comments
Open

Require raw client support putIfAbsent feature #330

blacktear23 opened this issue Jan 21, 2022 · 3 comments

Comments

@blacktear23
Copy link

blacktear23 commented Jan 21, 2022

Require raw client support putIfAbsent feature, just like client-java.

@blacktear23 blacktear23 changed the title Let raw client support putIfAbsent feature Require raw client support putIfAbsent feature Jan 21, 2022
@ekexium
Copy link
Collaborator

ekexium commented Jan 21, 2022

Try compare_and_swap? You can set previous_value to be None.

@blacktear23
Copy link
Author

Can we wrap a put_if_absent function? And the document need update, I cannot find compare_and_swap function at document.

@ekexium
Copy link
Collaborator

ekexium commented Jan 21, 2022

Can we wrap a put_if_absent function?
If it's remarkably easier for users to find what they want, I think it's worth it. In my personal opinion, there's no much difference.

The doc in docs.rs is v0.1, the CAS is implemented after v0.1. If you build the doc from master you would find it.
We haven't had enough staff to push forward client-rust for some time 😥.

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