is there any way to implement the queue in php sdk3 as in sdk2?
trying through lookupIn/mutateIn
$result = $this->bucket->getBucket()->defaultCollection()->lookupIn($id, [new LookupGetSpec('[-1]')]);
$this->bucket->getBucket()->defaultCollection()->mutateIn($id, [new MutateRemoveSpec('[-1]')]);
but, we get a situation where one element can be read several times
SDK 3 has Queue structure, it will become available if you follow installation instructions and get library from composer. Here is the implementation: couchbase-php-client/CouchbaseQueue.php at main · couchbase/couchbase-php-client · GitHub.
thank a lot, didn’t know about this awesome package