Memcache::pconnect

(PECL memcache >= 0.4.0) Open memcached server persistent connection mixed Memcache::pconnect ( string $host [, int $port [, int $timeout ]] ) Memcache::pconnect() is similar to Memcache::connect() with the difference, that the connection it establishes is persistent. This connection is not closed after the end of script execution and by Memcache::close() function. Also you can use memcache_pconnect() function.

Memcache::increment

(PECL memcache >= 0.2.0) Increment item's value int Memcache::increment ( string $key [, int $value = 1 ] ) Memcache::increment() increments value of an item by the specified value. If item specified by key was not numeric and cannot be converted to a number, it will change its value to value. Memcache::increment() does not create an item if it doesn't already exist. Note: Do not use Memcache::increment() with items

Memcache::getVersion

(PECL memcache >= 0.2.0) Return version of the server string Memcache::getVersion ( void ) Memcache::getVersion() returns a string with server's version number. Also you can use memcache_get_version() function. Returns: Returns a string of server version number or FALSE on failure. Examples: Memcache::getVersion() example

Memcache::getStats

(PECL memcache >= 0.2.0) Get statistics of the server array Memcache::getStats ([ string $type [, int $slabid [, int $limit = 100 ]]] ) Memcache::getStats() returns an associative array with server's statistics. Array keys correspond to stats parameters and values to parameter's values. Also you can use memcache_get_stats() function. Parameters: type The type of stati

Memcache::getServerStatus

(PECL memcache >= 2.1.0) Returns server status int Memcache::getServerStatus ( string $host [, int $port = 11211 ] ) Memcache::getServerStatus() returns a the servers online/offline status. You can also use memcache_get_server_status() function. Note: This function has been added to Memcache version 2.1.0. Parameters: host Point to the host where memcached is lis

Memcache::getExtendedStats

(PECL memcache >= 2.0.0) Get statistics from all servers in pool array Memcache::getExtendedStats ([ string $type [, int $slabid [, int $limit = 100 ]]] ) Memcache::getExtendedStats() returns a two-dimensional associative array with server statistics. Array keys correspond to host:port of server and values contain the individual server statistics. A failed server will have its corresponding entry set to FALSE. You can al

Memcache::get

(PECL memcache >= 0.2.0) Retrieve item from the server string Memcache::get ( string $key [, int &$flags ] ) array Memcache::get ( array $keys [, array &$flags ] ) Memcache::get() returns previously stored data if an item with such key exists on the server at this moment. You can pass array of keys to Memcache::get() to get array of values. The result array will contain only found key-value pairs.

Memcache::flush

(PECL memcache >= 1.0.0) Flush all existing items at the server bool Memcache::flush ( void ) Memcache::flush() immediately invalidates all existing items. Memcache::flush() doesn't actually free any resources, it only marks all the items as expired, so occupied memory will be overwritten by new items. Also you can use memcache_flush() function. Returns: Returns TRUE on success or FALSE on fail

Memcache::delete

(PECL memcache >= 0.2.0) Delete item from the server bool Memcache::delete ( string $key [, int $timeout = 0 ] ) Memcache::delete() deletes an item with the key. Parameters: key The key associated with the item to delete. timeout This deprecated parameter is not supported, and defaults to 0 seconds. Do not use this parameter.

Memcache::decrement

(PECL memcache >= 0.2.0) Decrement item's value int Memcache::decrement ( string $key [, int $value = 1 ] ) Memcache::decrement() decrements value of the item by value. Similarly to Memcache::increment(), current value of the item is being converted to numerical and after that value is subtracted. Note: New item's value will not be less than zero. Note: Do not use Memcache::decrement() with item, which was store