Zend Data Cache cache driver.
@license http://www.opensource.org/licenses/lgpl-license.php LGPL @link www.doctrine-project.org @since 2.0 @author Ralph Schindler <ralph.schindler@zend.com> @author Guilherme Blanco <guilhermeblanco@hotmail.com>
Expanded class hierarchy of ZendDataCache
class ZendDataCache extends CacheProvider {
/**
* {@inheritdoc}
*/
protected function doFetch($id) {
return zend_shm_cache_fetch($id);
}
/**
* {@inheritdoc}
*/
protected function doContains($id) {
return false !== zend_shm_cache_fetch($id);
}
/**
* {@inheritdoc}
*/
protected function doSave($id, $data, $lifeTime = 0) {
return zend_shm_cache_store($id, $data, $lifeTime);
}
/**
* {@inheritdoc}
*/
protected function doDelete($id) {
return zend_shm_cache_delete($id);
}
/**
* {@inheritdoc}
*/
protected function doFlush() {
$namespace = $this
->getNamespace();
if (empty($namespace)) {
return zend_shm_cache_clear();
}
return zend_shm_cache_clear($namespace);
}
/**
* {@inheritdoc}
*/
protected function doGetStats() {
return null;
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Cache:: |
constant | |||
Cache:: |
constant | |||
Cache:: |
constant | |||
Cache:: |
constant | |||
Cache:: |
constant | |||
CacheProvider:: |
private | property | ||
CacheProvider:: |
private | property | ||
CacheProvider:: |
public | function |
Test if an entry exists in the cache. Overrides Cache:: |
|
CacheProvider:: |
public | function |
Deletes a cache entry. Overrides Cache:: |
|
CacheProvider:: |
public | function | Delete all cache entries. | |
CacheProvider:: |
constant | |||
CacheProvider:: |
public | function |
Fetches an entry from the cache. Overrides Cache:: |
|
CacheProvider:: |
public | function | Deletes all cache entries. | |
CacheProvider:: |
public | function | Retrieve the namespace that prefixes all cache ids. | |
CacheProvider:: |
private | function | Namespace cache key | |
CacheProvider:: |
private | function | Prefix the passed id with the configured namespace value | |
CacheProvider:: |
private | function | Namespace version | |
CacheProvider:: |
public | function |
Retrieves cached information from data store Overrides Cache:: |
|
CacheProvider:: |
public | function |
Puts data into the cache. Overrides Cache:: |
|
CacheProvider:: |
public | function | Set the namespace to prefix all cache ids with. | |
ZendDataCache:: |
protected | function |
Test if an entry exists in the cache. Overrides CacheProvider:: |
|
ZendDataCache:: |
protected | function |
Deletes a cache entry. Overrides CacheProvider:: |
|
ZendDataCache:: |
protected | function |
Fetches an entry from the cache. Overrides CacheProvider:: |
|
ZendDataCache:: |
protected | function |
Deletes all cache entries. Overrides CacheProvider:: |
|
ZendDataCache:: |
protected | function |
Retrieves cached information from data store Overrides CacheProvider:: |
|
ZendDataCache:: |
protected | function |
Puts data into the cache. Overrides CacheProvider:: |