|
TYPO3 API
SVNRelease
|

Public Member Functions | |
| setCache (t3lib_cache_frontend_Frontend $cache) | |
| set ($entryIdentifier, $data, array $tags=array(), $lifetime=NULL) | |
| get ($entryIdentifier) | |
| has ($entryIdentifier) | |
| remove ($entryIdentifier) | |
| flush () | |
| flushByTag ($tag) | |
| flushByTags (array $tags) | |
| findIdentifiersByTag ($tag) | |
| findIdentifiersByTags (array $tags) | |
| collectGarbage () | |
Definition at line 37 of file interface.t3lib_cache_backend_backend.php.
| t3lib_cache_backend_Backend::collectGarbage | ( | ) |
Does garbage collection
Implemented in t3lib_cache_backend_RedisBackend, t3lib_cache_backend_MemcachedBackend, t3lib_cache_backend_FileBackend, t3lib_cache_backend_PdoBackend, t3lib_cache_backend_DbBackend, t3lib_cache_backend_ApcBackend, t3lib_cache_backend_TransientMemoryBackend, and t3lib_cache_backend_NullBackend.
| t3lib_cache_backend_Backend::findIdentifiersByTag | ( | $ | tag | ) |
Finds and returns all cache entry identifiers which are tagged by the specified tag.
| string | $tag | The tag to search for |
Implemented in t3lib_cache_backend_RedisBackend, t3lib_cache_backend_FileBackend, t3lib_cache_backend_MemcachedBackend, t3lib_cache_backend_PdoBackend, t3lib_cache_backend_DbBackend, t3lib_cache_backend_ApcBackend, t3lib_cache_backend_TransientMemoryBackend, and t3lib_cache_backend_NullBackend.
| t3lib_cache_backend_Backend::findIdentifiersByTags | ( | array $ | tags | ) |
Finds and returns all cache entry identifiers which are tagged by the specified tags. The asterisk ("*") is allowed as a wildcard at the beginning and the end of a tag.
| array | Array of tags to search for, the "*" wildcard is supported |
Implemented in t3lib_cache_backend_RedisBackend, t3lib_cache_backend_FileBackend, t3lib_cache_backend_MemcachedBackend, t3lib_cache_backend_PdoBackend, t3lib_cache_backend_DbBackend, t3lib_cache_backend_ApcBackend, t3lib_cache_backend_TransientMemoryBackend, and t3lib_cache_backend_NullBackend.
| t3lib_cache_backend_Backend::flush | ( | ) |
Removes all cache entries of this cache.
Implemented in t3lib_cache_backend_RedisBackend, t3lib_cache_backend_FileBackend, t3lib_cache_backend_MemcachedBackend, t3lib_cache_backend_DbBackend, t3lib_cache_backend_PdoBackend, t3lib_cache_backend_ApcBackend, t3lib_cache_backend_TransientMemoryBackend, and t3lib_cache_backend_NullBackend.
| t3lib_cache_backend_Backend::flushByTag | ( | $ | tag | ) |
Removes all cache entries of this cache which are tagged by the specified tag.
| string | $tag | The tag the entries must have |
Implemented in t3lib_cache_backend_RedisBackend, t3lib_cache_backend_FileBackend, t3lib_cache_backend_MemcachedBackend, t3lib_cache_backend_DbBackend, t3lib_cache_backend_PdoBackend, t3lib_cache_backend_ApcBackend, t3lib_cache_backend_TransientMemoryBackend, and t3lib_cache_backend_NullBackend.
| t3lib_cache_backend_Backend::flushByTags | ( | array $ | tags | ) |
Removes all cache entries of this cache which are tagged by the specified tags.
| array | The tags the entries must have |
Implemented in t3lib_cache_backend_RedisBackend, t3lib_cache_backend_FileBackend, t3lib_cache_backend_MemcachedBackend, t3lib_cache_backend_DbBackend, t3lib_cache_backend_ApcBackend, t3lib_cache_backend_TransientMemoryBackend, and t3lib_cache_backend_NullBackend.
| t3lib_cache_backend_Backend::get | ( | $ | entryIdentifier | ) |
Loads data from the cache.
| string | $entryIdentifier | An identifier which describes the cache entry to load |
Implemented in t3lib_cache_backend_RedisBackend, t3lib_cache_backend_MemcachedBackend, t3lib_cache_backend_FileBackend, t3lib_cache_backend_PdoBackend, t3lib_cache_backend_DbBackend, t3lib_cache_backend_ApcBackend, t3lib_cache_backend_TransientMemoryBackend, and t3lib_cache_backend_NullBackend.
| t3lib_cache_backend_Backend::has | ( | $ | entryIdentifier | ) |
Checks if a cache entry with the specified identifier exists.
| string | $entryIdentifier,: | An identifier specifying the cache entry |
Implemented in t3lib_cache_backend_RedisBackend, t3lib_cache_backend_MemcachedBackend, t3lib_cache_backend_FileBackend, t3lib_cache_backend_PdoBackend, t3lib_cache_backend_DbBackend, t3lib_cache_backend_ApcBackend, t3lib_cache_backend_TransientMemoryBackend, and t3lib_cache_backend_NullBackend.
| t3lib_cache_backend_Backend::remove | ( | $ | entryIdentifier | ) |
Removes all cache entries matching the specified identifier. Usually this only affects one entry but if - for what reason ever - old entries for the identifier still exist, they are removed as well.
| string | $entryIdentifier,: | Specifies the cache entry to remove |
Implemented in t3lib_cache_backend_RedisBackend, t3lib_cache_backend_MemcachedBackend, t3lib_cache_backend_FileBackend, t3lib_cache_backend_PdoBackend, t3lib_cache_backend_DbBackend, t3lib_cache_backend_ApcBackend, t3lib_cache_backend_TransientMemoryBackend, and t3lib_cache_backend_NullBackend.
| t3lib_cache_backend_Backend::set | ( | $ | entryIdentifier, |
| $ | data, | ||
| array $ | tags = array(), |
||
| $ | lifetime = NULL |
||
| ) |
Saves data in the cache.
| string | An identifier for this specific cache entry |
| string | The data to be stored |
| array | Tags to associate with this cache entry |
| integer | Lifetime of this cache entry in seconds. If NULL is specified, the default lifetime is used. "0" means unlimited liftime. |
| t3lib_cache_Exception | if no cache frontend has been set. |
| InvalidArgumentException | if the identifier is not valid |
| t3lib_cache_Exception_InvalidData | if the data is not a string |
Implemented in t3lib_cache_backend_RedisBackend, t3lib_cache_backend_MemcachedBackend, t3lib_cache_backend_FileBackend, t3lib_cache_backend_PdoBackend, t3lib_cache_backend_ApcBackend, t3lib_cache_backend_DbBackend, t3lib_cache_backend_TransientMemoryBackend, and t3lib_cache_backend_NullBackend.
| t3lib_cache_backend_Backend::setCache | ( | t3lib_cache_frontend_Frontend $ | cache | ) |
Sets a reference to the cache frontend which uses this backend
| t3lib_cache_frontend_Frontend | $cache | The frontend for this backend |
Implemented in t3lib_cache_backend_MemcachedBackend, t3lib_cache_backend_PdoBackend, t3lib_cache_backend_ApcBackend, t3lib_cache_backend_AbstractBackend, and t3lib_cache_backend_FileBackend.
1.7.5.1