| Package | Zend_Cache |
| Subpackage | Zend_Cache_Backend |
| Copyright | Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com) |
| License | http://framework.zend.com/license/new-bsd New BSD License |

class Zend_Cache_Backend_Memcached extends Zend_Cache_Backend implements Zend_Cache_Backend_ExtendedInterface
| Package | Zend_Cache |
| Subpackage | Zend_Cache_Backend |
| Copyright | Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com) |
| License | http://framework.zend.com/license/new-bsd New BSD License |
| # $_memcache | Memcache object |
| # $_options | Available options |
| + __construct() | Constructor |
| + clean() | Clean some cache records |
| + getCapabilities() | Return an associative array of capabilities (booleans) of the backend |
| + getFillingPercentage() | Return the filling percentage of the backend storage |
| + getIds() | Return an array of stored cache ids |
| + getIdsMatchingAnyTags() | Return an array of stored cache ids which match any given tags |
| + getIdsMatchingTags() | Return an array of stored cache ids which match given tags |
| + getIdsNotMatchingTags() | Return an array of stored cache ids which don't match given tags |
| + getMetadatas() | Return an array of metadatas for the given cache id |
| + getTags() | Return an array of stored tags |
| + isAutomaticCleaningAvailable() | Return true if the automatic cleaning is available for the backend |
| + load() | Test if a cache is available for the given id and (if yes) return it (false else) |
| + remove() | Remove a cache record |
| + save() | Save some string datas into a cache record |
| + setDirectives() | Set the frontend directives |
| + test() | Test if a cache is available or not (for the given id) |
| + touch() | Give (if possible) an extra lifetime to the given cache id |
const TAGS_UNSUPPORTED_BY_CLEAN_OF_MEMCACHED_BACKEND = 'Zend_Cache_Backend_Memcached::clean() : tags are unsupported by the Memcached backend'const TAGS_UNSUPPORTED_BY_SAVE_OF_MEMCACHED_BACKEND = 'Zend_Cache_Backend_Memcached::save() : tags are unsupported by the Memcached backend'protected $_memcache = nullprotected $_options = array(
'servers' => array(array(
'host' => self::DEFAULT_HOST,
'port' => self::DEFAULT_PORT,
'persistent' => self::DEFAULT_PERSISTENT,
'weight' => self::DEFAULT_WEIGHT,
'timeout' => self::DEFAULT_TIMEOUT,
'retry_interval' => self::DEFAULT_RETRY_INTERVAL,
'status' => self::DEFAULT_STATUS,
'failure_callback' => self::DEFAULT_FAILURE_CALLBACK
)),
'compression' => false,
'compatibility' => false,
)
public function __construct( |
array $options = array())
|
public function clean( |
$mode = Zend_Cache::CLEANING_MODE_ALL)
|
string $mode |
Clean mode |
array $tags |
Array of tags |
Zend_Cache_Exception
public function getCapabilities( |
)
|
public function getFillingPercentage( |
)
|
Zend_Cache_Exception
public function getIds( |
)
|
public function getIdsMatchingAnyTags( |
$tags = array())
|
array $tags |
array of tags |
public function getIdsMatchingTags( |
$tags = array())
|
array $tags |
array of tags |
public function getIdsNotMatchingTags( |
$tags = array())
|
array $tags |
array of tags |
public function getMetadatas( |
$id)
|
string $id |
cache id |
public function getTags( |
)
|
public function isAutomaticCleaningAvailable( |
)
|
public function load( |
$id)
|
string $id |
Cache id |
boolean $doNotTestCacheValidity |
If set to true, the cache validity won't be tested |
public function remove( |
$id)
|
string $id |
Cache id |
public function save( |
$data)
|
string $data |
Datas to cache |
string $id |
Cache id |
array $tags |
Array of strings, the cache record will be tagged by each string entry |
int $specificLifetime |
If != false, set a specific lifetime for this cache record (null => infinite lifetime) |
public function setDirectives( |
$directives)
|
array $directives |
Assoc of directives |
Zend_Cache_Exception
public function test( |
$id)
|
string $id |
Cache id |
public function touch( |
$id)
|
string $id |
cache id |
int $extraLifetime |