client-rust icon indicating copy to clipboard operation
client-rust copied to clipboard

Require raw client support `putIfAbsent` feature

Open blacktear23 opened this issue 3 years ago • 3 comments

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

blacktear23 avatar Jan 21 '22 13:01 blacktear23

Try compare_and_swap? You can set previous_value to be None.

ekexium avatar Jan 21 '22 13:01 ekexium

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

blacktear23 avatar Jan 21 '22 13:01 blacktear23

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 😥.

ekexium avatar Jan 21 '22 13:01 ekexium