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”’.
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