class VoidCache in Plug 7
Void cache driver. The cache could be of use in tests where you don`t need to cache anything.
@link www.doctrine-project.org @since 1.5 @author Kotlyar Maksim <kotlyar.maksim@gmail.com>
Hierarchy
- class \Doctrine\Common\Cache\CacheProvider implements Cache, ClearableCache, FlushableCache, MultiGetCache
- class \Doctrine\Common\Cache\VoidCache
Expanded class hierarchy of VoidCache
1 file declares its use of VoidCache
- VoidCacheTest.php in lib/
doctrine/ cache/ tests/ Doctrine/ Tests/ Common/ Cache/ VoidCacheTest.php
File
- lib/
doctrine/ cache/ lib/ Doctrine/ Common/ Cache/ VoidCache.php, line 29
Namespace
Doctrine\Common\CacheView source
class VoidCache extends CacheProvider {
/**
* {@inheritDoc}
*/
protected function doFetch($id) {
return false;
}
/**
* {@inheritDoc}
*/
protected function doContains($id) {
return false;
}
/**
* {@inheritDoc}
*/
protected function doSave($id, $data, $lifeTime = 0) {
return true;
}
/**
* {@inheritDoc}
*/
protected function doDelete($id) {
return true;
}
/**
* {@inheritDoc}
*/
protected function doFlush() {
return true;
}
/**
* {@inheritDoc}
*/
protected function doGetStats() {
return;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Cache:: |
constant | |||
Cache:: |
constant | |||
Cache:: |
constant | Only for backward compatibility (may be removed in next major release) | ||
Cache:: |
constant | |||
Cache:: |
constant | |||
Cache:: |
constant | |||
CacheProvider:: |
private | property | The namespace to prefix all cache ids with. | |
CacheProvider:: |
private | property | The namespace version. | |
CacheProvider:: |
public | function |
Tests if an entry exists in the cache. Overrides Cache:: |
|
CacheProvider:: |
public | function |
Deletes a cache entry. Overrides Cache:: |
|
CacheProvider:: |
public | function |
Deletes all cache entries. Overrides ClearableCache:: |
|
CacheProvider:: |
constant | |||
CacheProvider:: |
protected | function | Default implementation of doFetchMultiple. Each driver that supports multi-get should owerwrite it. | 4 |
CacheProvider:: |
public | function |
Fetches an entry from the cache. Overrides Cache:: |
|
CacheProvider:: |
public | function |
Returns an associative array of values for keys is found in cache. Overrides MultiGetCache:: |
|
CacheProvider:: |
public | function |
Flushes all cache entries. Overrides FlushableCache:: |
|
CacheProvider:: |
public | function | Retrieves the namespace that prefixes all cache ids. | |
CacheProvider:: |
private | function | Returns the namespace cache key. | |
CacheProvider:: |
private | function | Prefixes the passed id with the configured namespace value. | |
CacheProvider:: |
private | function | Returns the namespace version. | |
CacheProvider:: |
public | function |
Retrieves cached information from the data store. Overrides Cache:: |
|
CacheProvider:: |
public | function |
Puts data into the cache. Overrides Cache:: |
|
CacheProvider:: |
public | function | Sets the namespace to prefix all cache ids with. | 1 |
VoidCache:: |
protected | function |
Tests if an entry exists in the cache. Overrides CacheProvider:: |
|
VoidCache:: |
protected | function |
Deletes a cache entry. Overrides CacheProvider:: |
|
VoidCache:: |
protected | function |
Fetches an entry from the cache. Overrides CacheProvider:: |
|
VoidCache:: |
protected | function |
Flushes all cache entries. Overrides CacheProvider:: |
|
VoidCache:: |
protected | function |
Retrieves cached information from the data store. Overrides CacheProvider:: |
|
VoidCache:: |
protected | function |
Puts data into the cache. Overrides CacheProvider:: |