[JCBC-193] Allow CAS with delete Created: 24/Aug/11  Updated: 19/Dec/12  Resolved: 19/Dec/12

Status: Closed
Project: Couchbase Java Client
Component/s: Core
Affects Version/s: None
Fix Version/s: None
Security Level: Public

Type: Improvement Priority: Major
Reporter: Perry Krug Assignee: Matt Ingenthron
Resolution: Duplicate Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
duplicates SPY-128 Support CAS for delete operation Resolved

Customer request to allow CAS with delete option to ensure that an item has not changed since the last time it was read

Comment by Mike Wiederhold [ 24/Aug/11 ]
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)?
Comment by Marcus Longmuir [ 25/Aug/11 ]
The discussion which brought about this issue is found here:

CAD is exactly what I meant and would probably be the most appropriate function name.
Comment by Mike Wiederhold [ 22/Sep/11 ]
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.
Comment by Michael Nitschinger [ 19/Dec/12 ]
Does it make sense to implement cas delete?
Generated at Sat Nov 22 18:51:51 CST 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.