I have been looking into the PHP SDK 2 API and google around the web, but all I found is some outdated example… Such as How to check whether a document exists or not?
Currently if I use get() and key doesn’t exists, it will throw an CouchbaseException which said its not exists
with error code 13.
Handling an exception to see if the document exists seems heavy operation (generate stacktrace etc).
What is the proper way to check if the document exists currently?