Implements interfaces:
Located in /Cache/Backend/Memcached.php (line 41)
Zend_Cache_Backend | --Zend_Cache_Backend_Memcached
Memcache object
Available options
=====> (array) servers : an array of memcached server ; each memcached server is described by an associative array : 'host' => (string) : the name of the memcached server 'port' => (int) : the port of the memcached server 'persistent' => (bool) : use or not persistent connections to this memcached server 'weight' => (int) : number of buckets to create for this server which in turn control its probability of it being selected. The probability is relative to the total weight of all servers. 'timeout' => (int) : value in seconds which will be used for connecting to the daemon. Think twice before changing the default value of 1 second - you can lose all the advantages of caching if your connection is too slow. 'retry_interval' => (int) : controls how often a failed server will be retried, the default value is 15 seconds. Setting this parameter to -1 disables automatic retry. 'status' => (bool) : controls if the server should be flagged as online. 'failure_callback' => (callback) : Allows the user to specify a callback function to run upon encountering an error. The callback is run before failover is attempted. The function takes two parameters, the hostname and port of the failed server.
=====> (boolean) compression : true if you want to use on-the-fly compression
=====> (boolean) compatibility : true if you use old memcache server or extension
Inherited from Zend_Cache_Backend
Zend_Cache_Backend::$_directives
Constructor
Clean some cache records
Available modes are : 'all' (default) => remove all cache entries ($tags is not used) 'old' => unsupported 'matchingTag' => unsupported 'notMatchingTag' => unsupported 'matchingAnyTag' => unsupported
Return an associative array of capabilities (booleans) of the backend
The array must include these keys :
Return the filling percentage of the backend storage
Return an array of stored cache ids
Return an array of stored cache ids which match any given tags
In case of multiple tags, a logical AND is made between tags
Return an array of stored cache ids which match given tags
In case of multiple tags, a logical AND is made between tags
Return an array of stored cache ids which don't match given tags
In case of multiple tags, a logical OR is made between tags
Return an array of metadatas for the given cache id
The array must include these keys :
Return an array of stored tags
Return true if the automatic cleaning is available for the backend
Test if a cache is available for the given id and (if yes) return it (false else)
Remove a cache record
Save some string datas into a cache record
Note : $data is always "string" (serialization is done by the core not by the backend)
Set the frontend directives
Test if a cache is available or not (for the given id)
Give (if possible) an extra lifetime to the given cache id
Inherited From Zend_Cache_Backend
Zend_Cache_Backend::__construct()
Zend_Cache_Backend::getLifetime()
Zend_Cache_Backend::getTmpDir()
Zend_Cache_Backend::isAutomaticCleaningAvailable()
Zend_Cache_Backend::setDirectives()
Zend_Cache_Backend::setOption()
Zend_Cache_Backend::_isGoodTmpDir()
Zend_Cache_Backend::_log()
Zend_Cache_Backend::_loggerSanity()
Default Values
Log message
Documentation generated on Mon, 21 Jun 2010 15:33:35 -0400 by phpDocumentor 1.4.3