New CAS id after update (Java SDK)
I using the latest java SDK 1.1dp4
I am attempting to use the casId as an optimistic locking mechanism by providing it to the client. Flow:
1. gets -> return object + casId to client
2. cas -> client provides the casId and new value
The problem I have is with the cas method returning CASResponse which is an enum. It does not return the *new* casId after the update. I would have to issue a new "gets" which may not return the correct casId (other threads may have gets/cas in the meantime).
Maybe this is a new feature request or I am missing something?