46 $this->client->set_servers(
$params[
'servers'] );
47 $this->client->set_debug(
$params[
'debug'] );
51 $this->client->set_debug(
$debug );
55 foreach (
$keys as $key ) {
59 return $this->client->get_multi(
$keys );
65 return $this->client->incr( $key,
$value ) ??
false;
71 return $this->client->decr( $key,
$value ) ??
false;
Base class for memcached clients.
validateKeyEncoding( $key)
Ensure that a key is safe to use (contains no control characters and no characters above the ASCII ra...
applyDefaultParams( $params)
Fill in some defaults for missing keys in $params.
memcached client class implemented using (p)fsockopen()
A wrapper class for the pure-PHP memcached client, exposing a BagOStuff interface.
__construct( $params)
Available parameters are:
decr( $key, $value=1)
Decrease stored value of $key by $value while preserving its TTL.
incr( $key, $value=1)
Increase stored value of $key by $value while preserving its TTL.
getMulti(array $keys, $flags=0)
Get an associative array containing the item for each of the keys that have items.