TYPO3
7.6
|
Public Member Functions | |
__construct ($context, array $options=array()) | |
setCache (\TYPO3\CMS\Core\Cache\Frontend\FrontendInterface $cache) | |
setDefaultLifetime ($defaultLifetime) | |
Public Member Functions inherited from BackendInterface | |
set ($entryIdentifier, $data, array $tags=array(), $lifetime=null) | |
get ($entryIdentifier) | |
has ($entryIdentifier) | |
remove ($entryIdentifier) | |
flush () | |
collectGarbage () | |
Public Attributes | |
const | DATETIME_EXPIRYTIME_UNLIMITED = '9999-12-31T23:59:59+0000' |
const | UNLIMITED_LIFETIME = 0 |
Protected Member Functions | |
calculateExpiryTime ($lifetime=null) | |
Protected Attributes | |
$cache | |
$cacheIdentifier | |
$context | |
$defaultLifetime = 3600 | |
An abstract caching backend
This file is a backport from FLOW3
Definition at line 23 of file core/Classes/Cache/Backend/AbstractBackend.php.
__construct | ( | $context, | |
array | $options = array() |
||
) |
Constructs this backend
string | $context | FLOW3's application context |
array | $options | Configuration options - depends on the actual backend |
\InvalidArgumentException |
Definition at line 65 of file core/Classes/Cache/Backend/AbstractBackend.php.
References AbstractBackend\$context.
|
protected |
Calculates the expiry time by the given lifetime. If no lifetime is specified, the default lifetime is used.
int | $lifetime | The lifetime in seconds |
Definition at line 116 of file core/Classes/Cache/Backend/AbstractBackend.php.
References AbstractBackend\$defaultLifetime.
setCache | ( | \TYPO3\CMS\Core\Cache\Frontend\FrontendInterface | $cache | ) |
Sets a reference to the cache frontend which uses this backend
\TYPO3\CMS\Core\Cache\Frontend\FrontendInterface | $cache | The frontend for this backend |
Implements BackendInterface.
Definition at line 87 of file core/Classes/Cache/Backend/AbstractBackend.php.
References AbstractBackend\$cache.
setDefaultLifetime | ( | $defaultLifetime | ) |
Sets the default lifetime for this cache backend
int | $defaultLifetime | Default lifetime of this cache backend in seconds. If NULL is specified, the default lifetime is used. "0" means unlimited liftime. |
\InvalidArgumentException |
Definition at line 101 of file core/Classes/Cache/Backend/AbstractBackend.php.
References AbstractBackend\$defaultLifetime.
|
protected |
Definition at line 32 of file core/Classes/Cache/Backend/AbstractBackend.php.
Referenced by AbstractBackend\setCache().
|
protected |
Definition at line 37 of file core/Classes/Cache/Backend/AbstractBackend.php.
Referenced by ApcBackend\set(), MemcachedBackend\set(), and Typo3DatabaseBackend\setCache().
|
protected |
Definition at line 48 of file core/Classes/Cache/Backend/AbstractBackend.php.
Referenced by WincacheBackend\__construct(), XcacheBackend\__construct(), AbstractBackend\__construct(), ApcBackend\__construct(), MemcachedBackend\__construct(), and RedisBackend\__construct().
|
protected |
Definition at line 55 of file core/Classes/Cache/Backend/AbstractBackend.php.
Referenced by AbstractBackend\calculateExpiryTime(), WincacheBackend\set(), XcacheBackend\set(), Typo3DatabaseBackend\set(), ApcBackend\set(), MemcachedBackend\set(), and AbstractBackend\setDefaultLifetime().
const DATETIME_EXPIRYTIME_UNLIMITED = '9999-12-31T23:59:59+0000' |
Definition at line 25 of file core/Classes/Cache/Backend/AbstractBackend.php.
const UNLIMITED_LIFETIME = 0 |
Definition at line 26 of file core/Classes/Cache/Backend/AbstractBackend.php.