TYPO3
7.6
|
Public Member Functions | |
__construct ($identifier, PhpCapableBackendInterface $backend) | |
set ($entryIdentifier, $sourceCode, array $tags=array(), $lifetime=null) | |
requireOnce ($entryIdentifier) | |
Public Member Functions inherited from StringFrontend | |
set ($entryIdentifier, $string, array $tags=array(), $lifetime=null) | |
get ($entryIdentifier) | |
getByTag ($tag) | |
Public Member Functions inherited from AbstractFrontend | |
__construct ($identifier, BackendInterface $backend) | |
getIdentifier () | |
getBackend () | |
has ($entryIdentifier) | |
remove ($entryIdentifier) | |
flush () | |
flushByTag ($tag) | |
collectGarbage () | |
isValidEntryIdentifier ($identifier) | |
isValidTag ($tag) | |
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}$/' |
Protected Attributes inherited from AbstractFrontend | |
$identifier | |
$backend | |
A cache frontend tailored to PHP code.
This file is a backport from FLOW3
Definition at line 26 of file PhpFrontend.php.
__construct | ( | $identifier, | |
PhpCapableBackendInterface | $backend | ||
) |
Constructs the cache
string | $identifier | An identifier which describes this cache |
PhpCapableBackendInterface | $backend | Backend to be used for this cache |
Definition at line 34 of file PhpFrontend.php.
References AbstractFrontend\$identifier.
requireOnce | ( | $entryIdentifier | ) |
Loads PHP code from the cache and require_onces it right away.
string | $entryIdentifier | An identifier which describes the cache entry to load |
Definition at line 75 of file PhpFrontend.php.
set | ( | $entryIdentifier, | |
$sourceCode, | |||
array | $tags = array() , |
||
$lifetime = null |
|||
) |
Saves the PHP source code in the cache.
string | $entryIdentifier | An identifier used for this cache entry, for example the class name |
string | $sourceCode | PHP source code |
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 $entryIdentifier or $tags is invalid |
InvalidDataException | If $sourceCode is not a string |
Implements FrontendInterface.
Definition at line 51 of file PhpFrontend.php.
References AbstractFrontend\isValidEntryIdentifier(), and AbstractFrontend\isValidTag().