TYPO3
7.6
|
Public Member Functions | |
__construct ($identifier, BackendInterface $backend) | |
getIdentifier () | |
getBackend () | |
has ($entryIdentifier) | |
remove ($entryIdentifier) | |
flush () | |
flushByTag ($tag) | |
collectGarbage () | |
isValidEntryIdentifier ($identifier) | |
isValidTag ($tag) | |
Public Member Functions inherited from FrontendInterface | |
set ($entryIdentifier, $data, array $tags=array(), $lifetime=null) | |
get ($entryIdentifier) | |
getByTag ($tag) | |
Protected Attributes | |
$identifier | |
$backend | |
Additional Inherited Members | |
Public Attributes inherited from FrontendInterface | |
const | TAG_CLASS = '%CLASS%' |
const | TAG_PACKAGE = '%PACKAGE%' |
const | PATTERN_ENTRYIDENTIFIER = '/^[a-zA-Z0-9_%\\-&]{1,250}$/' |
const | PATTERN_TAG = '/^[a-zA-Z0-9_%\\-&]{1,250}$/' |
An abstract cache
This file is a backport from FLOW3
Definition at line 28 of file AbstractFrontend.php.
__construct | ( | $identifier, | |
BackendInterface | $backend | ||
) |
Constructs the cache
string | $identifier | An identifier which describes this cache |
BackendInterface | $backend | Backend to be used for this cache |
\InvalidArgumentException | if the identifier doesn't match PATTERN_ENTRYIDENTIFIER |
Definition at line 49 of file AbstractFrontend.php.
References AbstractFrontend\$backend, and AbstractFrontend\$identifier.
collectGarbage | ( | ) |
Does garbage collection
Implements FrontendInterface.
Definition at line 154 of file AbstractFrontend.php.
flush | ( | ) |
Removes all cache entries of this cache.
Implements FrontendInterface.
Definition at line 119 of file AbstractFrontend.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 |
\InvalidArgumentException |
Implements FrontendInterface.
Definition at line 132 of file AbstractFrontend.php.
References $GLOBALS, GeneralUtility\callUserFunction(), and AbstractFrontend\isValidTag().
getBackend | ( | ) |
Returns the backend used by this cache
Implements FrontendInterface.
Definition at line 76 of file AbstractFrontend.php.
References AbstractFrontend\$backend.
getIdentifier | ( | ) |
Returns this cache's identifier
Implements FrontendInterface.
Definition at line 65 of file AbstractFrontend.php.
References AbstractFrontend\$identifier.
has | ( | $entryIdentifier | ) |
Checks if a cache entry with the specified identifier exists.
string | $entryIdentifier | An identifier specifying the cache entry |
\InvalidArgumentException | If $entryIdentifier is invalid |
Implements FrontendInterface.
Definition at line 89 of file AbstractFrontend.php.
References AbstractFrontend\isValidEntryIdentifier().
isValidEntryIdentifier | ( | $identifier | ) |
Checks the validity of an entry identifier. Returns TRUE if it's valid.
string | $identifier | An identifier to be checked for validity |
Implements FrontendInterface.
Definition at line 166 of file AbstractFrontend.php.
References AbstractFrontend\$identifier.
Referenced by StringFrontend\get(), VariableFrontend\get(), AbstractFrontend\has(), AbstractFrontend\remove(), StringFrontend\set(), PhpFrontend\set(), and VariableFrontend\set().
isValidTag | ( | $tag | ) |
Checks the validity of a tag. Returns TRUE if it's valid.
string | $tag | An identifier to be checked for validity |
Implements FrontendInterface.
Definition at line 178 of file AbstractFrontend.php.
Referenced by AbstractFrontend\flushByTag(), StringFrontend\getByTag(), VariableFrontend\getByTag(), StringFrontend\set(), PhpFrontend\set(), and VariableFrontend\set().
remove | ( | $entryIdentifier | ) |
Removes the given cache entry from the cache.
string | $entryIdentifier | An identifier specifying the cache entry |
\InvalidArgumentException |
Implements FrontendInterface.
Definition at line 105 of file AbstractFrontend.php.
References AbstractFrontend\isValidEntryIdentifier().
|
protected |
Definition at line 40 of file AbstractFrontend.php.
Referenced by AbstractFrontend\__construct(), and AbstractFrontend\getBackend().
|
protected |
Definition at line 35 of file AbstractFrontend.php.
Referenced by PhpFrontend\__construct(), AbstractFrontend\__construct(), StringFrontend\getByTag(), VariableFrontend\getByTag(), AbstractFrontend\getIdentifier(), and AbstractFrontend\isValidEntryIdentifier().