$operationTimeout
$operationTimeout : integer
Represents a bucket connection.
Note: This class must be constructed by calling the openBucket method of the CouchbaseCluster class.
manager() : \CouchbaseBucketManager
Returns an instance of a CouchbaseBucketManager for performing management operations against a bucket.
enableN1ql( $hosts)
Enables N1QL support on the client. A cbq-server URI must be passed.
This method will be deprecated in the future in favor of automatic configuration through the connected cluster.
$hosts | An array of host/port combinations which are N1QL servers attached to the cluster. |
insert(string|array $ids, mixed $val = NULL, array $options = array()) : mixed
Inserts a document. This operation will fail if the document already exists on the cluster.
string|array | $ids | |
mixed | $val | |
array | $options | expiry(integer), persist_to(integer), replicate_to(integer) |
upsert(string|array $ids, mixed $val = NULL, array $options = array()) : mixed
Inserts or updates a document, depending on whether the document already exists on the cluster.
string|array | $ids | |
mixed | $val | |
array | $options | expiry(integer), persist_to(integer), replicate_to(integer) |
lookupIn(string $id) : \CouchbaseLookupInBuilder
Creates a CouchbaseLookupInBuilder object with which you can then use method-chaining to populate them with lookup operations and then later execute.
string | $id |
mutateIn(string $id, string $cas = null) : \CouchbaseMutateInBuilder
Creates a CouchbaseMutateInBuilder object with which you can then use method-chaining to populate them with mutation operations and then later execute.
string | $id | |
string | $cas |