Memcached::append

(PECL memcached >= 0.1.0) Append data to an existing item public bool Memcached::append ( string $key, string $value ) Memcached::append() appends the given value string to the value of an existing item. The reason that value is forced to be a string is that appending mixed types is not well-defined. Note: If the Memcached::OPT_COMPRESSION is enabled, the operation will fail and a warning will be issued, because appen

Memcached::addServers

(PECL memcached >= 0.1.1) Add multiple servers to the server pool public bool Memcached::addServers ( array $servers ) Memcached::addServers() adds servers to the server pool. Each entry in servers is supposed to be an array containing hostname, port, and, optionally, weight of the server. No connection is established to the servers at this time. The same server may appear multiple times in the server pool, because no d

Memcached::addServer

(PECL memcached >= 0.1.0) Add a server to the server pool public bool Memcached::addServer ( string $host, int $port [, int $weight = 0 ] ) Memcached::addServer() adds the specified server to the server pool. No connection is established to the server at this time, but if you are using consistent key distribution option (via Memcached::DISTRIBUTION_CONSISTENT or Memcached::OPT_LIBKETAMA_COMPATIBLE), some of the internal

Memcached::addByKey

(PECL memcached >= 0.1.0) Add an item under a new key on a specific server public bool Memcached::addByKey ( string $server_key, string $key, mixed $value [, int $expiration ] ) Memcached::addByKey() is functionally equivalent to Memcached::add(), except that the free-form server_key can be used to map the key to a specific server. This is useful if you need to keep a bunch of related keys on a certain server.

Memcached::add

(PECL memcached >= 0.1.0) Add an item under a new key public bool Memcached::add ( string $key, mixed $value [, int $expiration ] ) Memcached::add() is similar to Memcached::set(), but the operation fails if the key already exists on the server. Parameters: key The key under which to store the value. value The value to store.

memcache_debug

(PECL memcache >= 0.2.0) Turn debug output on/off bool memcache_debug ( bool $on_off ) memcache_debug() turns on debug output if parameter on_off is equal to TRUE and turns off if it's FALSE. Note: memcache_debug() is accessible only if PHP was built with --enable-debug option and always returns TRUE in this case. Otherwise, this function has no effect and always returns FALSE. Parameters:

Memcache::setServerParams

(PECL memcache >= 2.1.0) Changes server parameters and status at runtime bool Memcache::setServerParams ( string $host [, int $port = 11211 [, int $timeout [, int $retry_interval = false [, bool $status [, callable $failure_callback ]]]]] ) Memcache::setServerParams() changes server parameters at runtime. You can also use the memcache_set_server_params() function. Note: This function has been added to Memcache versi

Memcache::setCompressThreshold

(PECL memcache >= 2.0.0) Enable automatic compression of large values bool Memcache::setCompressThreshold ( int $threshold [, float $min_savings ] ) Memcache::setCompressThreshold() enables automatic compression of large values. You can also use the memcache_set_compress_threshold() function. Note: This function has been added to Memcache version 2.0.0. Parameters: threshold

Memcache::set

(PECL memcache >= 0.2.0) Store data at the server bool Memcache::set ( string $key, mixed $var [, int $flag [, int $expire ]] ) Memcache::set() stores an item var with key on the memcached server. Parameter expire is expiration time in seconds. If it's 0, the item never expires (but memcached server doesn't guarantee this item to be stored all the time, it could be deleted from the cache to make place for other items). Yo

Memcache::replace

(PECL memcache >= 0.2.0) Replace value of the existing item bool Memcache::replace ( string $key, mixed $var [, int $flag [, int $expire ]] ) Memcache::replace() should be used to replace value of existing item with key. In case if item with such key doesn't exists, Memcache::replace() returns FALSE. For the rest Memcache::replace() behaves similarly to Memcache::set(). Also you can use memcache_replace() function.