|
Do you mean you want a single operation that does deletes and operation only if it hasn't changed. In other words you want CAD (check and delete)?
|
The discussion which brought about this issue is found here:
http://www.couchbase.org/forums/thread/set-or-return-current-value
CAD is exactly what I meant and would probably be the most appropriate function name.
|
|
I think that to implement this correctly we would need to refactor a bunch of code. The reason is that you can actually use cas values with every command and as a result it wouldn't make sense to create duplicate functions for every command (delete included). I am going to move it to the 3.0 release as a result.
|
|
Does it make sense to implement cas delete?
|
Generated at Fri May 24 18:15:46 CDT 2013 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.