SDK 2.1.3: getAndLock not available for memcached buckets?

Whenever I am using a memcached bucket, calling Bucket.getAndLock(...) throws a “COMMAND_UNAVAILABLE” exception.
Is getAndLock really not available for memcached buckets in general or is it an API problem? Because I only find two results on Google when searching for ‘couchbase “COMMAND_UNAVAILABLE”’.

Thanks.

I believe it is expected but let’s ask @daschl just in case.

I’m running into the same problem. Was this resolved?

Correct, getAndLock is not available on the server for memcached buckets. I recommend you to either investigate CAS instead or move over to couchbase buckets if you really need it :slight_smile: