Represents a bucket connection.
Note: This class must be constructed by calling the openBucket method of the CouchbaseCluster class.
package |
Couchbase |
---|---|
see |
manager() : \CouchbaseBucketManager
enableN1ql(mixed $hosts)
This method will be deprecated in the future in favor of automatic configuration through the connected cluster.
mixed
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
string|array
mixed
array
expiry,flags
mixed
upsert(string|array $ids, mixed $val = NULL, array $options = array()) : mixed
string|array
mixed
array
expiry,flags
mixed
replace(string|array $ids, mixed $val = NULL, array $options = array()) : mixed
string|array
mixed
array
cas,expiry,flags
mixed
append(string|array $ids, mixed $val = NULL, array $options = array()) : mixed
string|array
mixed
array
cas
mixed
prepend(string|array $ids, mixed $val = NULL, array $options = array()) : mixed
string|array
mixed
array
cas
mixed
remove(string|array $ids, array $options = array()) : mixed
string|array
array
cas
mixed
get(string|array $ids, array $options = array()) : mixed
string|array
array
lock
mixed
getAndTouch(string $id, integer $expiry, array $options = array()) : mixed
string
integer
array
mixed
getAndLock(string $id, integer $lockTime, array $options = array()) : mixed
string
integer
array
mixed
getFromReplica(string $id, array $options = array()) : mixed
string
array
mixed
counter(string|array $ids, integer $delta, array $options = array()) : mixed
string|array
integer
array
initial,expiry
mixed
unlock(string|array $ids, array $options = array()) : mixed
string|array
array
cas
mixed
query(\CouchbaseQuery $query) : mixed
throws | |
---|---|
\CouchbaseQuery
mixed
flush() : mixed
mixed
setTranscoder(string $encoder, string $decoder)
string
The encoder function name
string
The decoder function name
operationTimeout : integer
integer
viewTimeout : integer
integer
durabilityInterval : integer
integer
durabilityTimeout : integer
integer
httpTimeout : integer
integer
configTimeout : integer
integer
configDelay : integer
integer
configNodeTimeout : integer
integer
htconfigIdleTimeout : integer
integer