TYPO3
7.6
|
Public Member Functions | |
set ($entryIdentifier, $data, array $tags=array(), $lifetime=null) | |
get ($entryIdentifier) | |
has ($entryIdentifier) | |
remove ($entryIdentifier) | |
findIdentifiersByTag ($tag) | |
flush () | |
flushByTag ($tag) | |
collectGarbage () | |
Public Member Functions inherited from AbstractBackend | |
__construct ($context, array $options=array()) | |
setCache (\TYPO3\CMS\Core\Cache\Frontend\FrontendInterface $cache) | |
setDefaultLifetime ($defaultLifetime) | |
Protected Attributes | |
$entries = array() | |
$tagsAndEntries = array() | |
Protected Attributes inherited from AbstractBackend | |
$cache | |
$cacheIdentifier | |
$context | |
$defaultLifetime = 3600 | |
Additional Inherited Members | |
Public Attributes inherited from AbstractBackend | |
const | DATETIME_EXPIRYTIME_UNLIMITED = '9999-12-31T23:59:59+0000' |
const | UNLIMITED_LIFETIME = 0 |
Protected Member Functions inherited from AbstractBackend | |
calculateExpiryTime ($lifetime=null) | |
A caching backend which stores cache entries during one script run.
This file is a backport from FLOW3
Definition at line 23 of file TransientMemoryBackend.php.
collectGarbage | ( | ) |
Does nothing
Implements BackendInterface.
Definition at line 157 of file TransientMemoryBackend.php.
findIdentifiersByTag | ( | $tag | ) |
Finds and returns all cache entry identifiers which are tagged by the specified tag.
string | $tag | The tag to search for |
Implements TaggableBackendInterface.
Definition at line 115 of file TransientMemoryBackend.php.
Referenced by TransientMemoryBackend\flushByTag().
flush | ( | ) |
Removes all cache entries of this cache.
Implements BackendInterface.
Definition at line 130 of file TransientMemoryBackend.php.
flushByTag | ( | $tag | ) |
Removes all cache entries of this cache which are tagged by the specified tag.
string | $tag | The tag the entries must have |
Implements TaggableBackendInterface.
Definition at line 143 of file TransientMemoryBackend.php.
References TransientMemoryBackend\findIdentifiersByTag().
get | ( | $entryIdentifier | ) |
Loads data from the cache.
string | $entryIdentifier | An identifier which describes the cache entry to load |
Implements BackendInterface.
Definition at line 68 of file TransientMemoryBackend.php.
has | ( | $entryIdentifier | ) |
Checks if a cache entry with the specified identifier exists.
string | $entryIdentifier | An identifier specifying the cache entry |
Implements BackendInterface.
Definition at line 80 of file TransientMemoryBackend.php.
remove | ( | $entryIdentifier | ) |
Removes all cache entries matching the specified identifier.
string | $entryIdentifier | Specifies the cache entry to remove |
Implements BackendInterface.
Definition at line 92 of file TransientMemoryBackend.php.
set | ( | $entryIdentifier, | |
$data, | |||
array | $tags = array() , |
||
$lifetime = null |
|||
) |
Saves data in the cache.
string | $entryIdentifier | An identifier for this specific cache entry |
string | $data | The data to be stored |
array | $tags | Tags to associate with this cache entry |
int | $lifetime | Lifetime of this cache entry in seconds. If NULL is specified, the default lifetime is used. "0" means unlimited liftime. |
\TYPO3\CMS\Core\Cache\Exception | if no cache frontend has been set. |
\TYPO3\CMS\Core\Cache\Exception\InvalidDataException |
Implements BackendInterface.
Definition at line 47 of file TransientMemoryBackend.php.
|
protected |
Definition at line 28 of file TransientMemoryBackend.php.
|
protected |
Definition at line 33 of file TransientMemoryBackend.php.