Hi, I am using Couchbase older version.
I am trying to use the getAndLock method, but am unable to differentiate its return value when the document does not exist and when the document is locked.
When document is locked by another client, it returns -1 as the CASValue.
It returns the same value when the document does not exist.
How to differentiate between these 2 types in the method calls ?
Thanks in advance.