![]() |
TYPO3
7.6
|
Public Member Functions | |
set ($entryIdentifier, $string, array $tags=array(), $lifetime=null) | |
get ($entryIdentifier) | |
getByTag ($tag) | |
![]() | |
__construct ($identifier, BackendInterface $backend) | |
getIdentifier () | |
getBackend () | |
has ($entryIdentifier) | |
remove ($entryIdentifier) | |
flush () | |
flushByTag ($tag) | |
collectGarbage () | |
isValidEntryIdentifier ($identifier) | |
isValidTag ($tag) | |
Additional Inherited Members | |
![]() | |
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}$/' |
![]() | |
$identifier | |
$backend | |
A cache frontend for strings. Nothing else.
This file is a backport from FLOW3
Definition at line 25 of file StringFrontend.php.
get | ( | $entryIdentifier | ) |
Finds and returns a variable value from the cache.
string | $entryIdentifier | Identifier of the cache entry to fetch |
\InvalidArgumentException | if the cache identifier is not valid |
Implements FrontendInterface.
Definition at line 63 of file StringFrontend.php.
References AbstractFrontend\isValidEntryIdentifier().
getByTag | ( | $tag | ) |
Finds and returns all cache entries which are tagged by the specified tag.
string | $tag | The tag to search for |
\InvalidArgumentException | if the tag is not valid |
Implements FrontendInterface.
Definition at line 79 of file StringFrontend.php.
References AbstractFrontend\$identifier, and AbstractFrontend\isValidTag().
set | ( | $entryIdentifier, | |
$string, | |||
array | $tags = array() , |
||
$lifetime = null |
|||
) |
Saves the value of a PHP variable in the cache.
string | $entryIdentifier | An identifier used for this cache entry |
string | $string | The variable to cache |
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. |
\InvalidArgumentException | if the identifier or tag is not valid |
InvalidDataException | if the variable to cache is not of type string |
Implements FrontendInterface.
Definition at line 39 of file StringFrontend.php.
References AbstractFrontend\isValidEntryIdentifier(), and AbstractFrontend\isValidTag().