Property | Type | Description | |
---|---|---|---|
$client | CouchbaseBucket |
Method | Description | |
---|---|---|
__construct ( CouchbaseBucket $client ) | ||
add ( $key, $value, $expire ) | ||
cas ( $token, $key, $value, $expire ) | ||
decrement ( $key, $offset = 1, $initial, $expire ) | ||
delete ( $key ) | ||
deleteMulti ( array $keys ) | ||
flush ( ) | ||
get ( $key, &$token = null ) | ||
getMulti ( array $keys, array &$tokens = null ) | ||
increment ( $key, $offset = 1, $initial, $expire ) | ||
replace ( $key, $value, $expire ) | ||
set ( $key, $value, $expire ) | ||
setMulti ( array $items, $expire ) | ||
touch ( $key, $expire ) |
Method | Description | |
---|---|---|
doIncrement ( string $key, integer $offset, integer $initial, integer $expire ) : integer | boolean | We could use $this->client->counter(), but it doesn't seem to respect data types and stores the values as strings instead of integers. | |
serialize ( mixed $value ) : string | mixed | Couchbase doesn't properly remember the data type being stored: arrays and objects are turned into stdClass instances. | |
unserialize ( mixed $value ) : mixed | integer | float | Restore serialized data. |