TYPO3
7.6
|
Public Member Functions | |
getIdentifier () | |
getBackend () | |
set ($entryIdentifier, $data, array $tags=array(), $lifetime=null) | |
get ($entryIdentifier) | |
getByTag ($tag) | |
has ($entryIdentifier) | |
remove ($entryIdentifier) | |
flush () | |
flushByTag ($tag) | |
collectGarbage () | |
isValidEntryIdentifier ($identifier) | |
isValidTag ($tag) | |
Public Attributes | |
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}$/' |
Contract for a Cache (frontend)
Definition at line 21 of file FrontendInterface.php.
collectGarbage | ( | ) |
flush | ( | ) |
flushByTag | ( | $tag | ) |
Removes all cache entries of this cache which are tagged by the specified tag.
string | $tag | The tag the entries must have |
Implemented in AbstractFrontend.
get | ( | $entryIdentifier | ) |
Finds and returns data from the cache.
string | $entryIdentifier | Something which identifies the cache entry - depends on concrete cache |
Implemented in VariableFrontend, and StringFrontend.
getBackend | ( | ) |
Returns the backend used by this cache
Implemented in AbstractFrontend.
getByTag | ( | $tag | ) |
Finds and returns all cache entries which are tagged by the specified tag.
string | $tag | The tag to search for |
Implemented in VariableFrontend, and StringFrontend.
getIdentifier | ( | ) |
Returns this cache's identifier
Implemented in AbstractFrontend.
has | ( | $entryIdentifier | ) |
Checks if a cache entry with the specified identifier exists.
string | $entryIdentifier | An identifier specifying the cache entry |
Implemented in AbstractFrontend.
isValidEntryIdentifier | ( | $identifier | ) |
Checks the validity of an entry identifier. Returns TRUE if it's valid.
string | $identifier | An identifier to be checked for validity |
Implemented in AbstractFrontend.
isValidTag | ( | $tag | ) |
Checks the validity of a tag. Returns TRUE if it's valid.
string | $tag | A tag to be checked for validity |
Implemented in AbstractFrontend.
remove | ( | $entryIdentifier | ) |
Removes the given cache entry from the cache.
string | $entryIdentifier | An identifier specifying the cache entry |
Implemented in AbstractFrontend.
set | ( | $entryIdentifier, | |
$data, | |||
array | $tags = array() , |
||
$lifetime = null |
|||
) |
Saves data in the cache.
string | $entryIdentifier | Something which identifies the data - depends on concrete cache |
mixed | $data | The data to cache - also depends on the concrete cache implementation |
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. |
Implemented in VariableFrontend, PhpFrontend, and StringFrontend.
const PATTERN_ENTRYIDENTIFIER = '/^[a-zA-Z0-9_%\\-&]{1,250}$/' |
Pattern an entry identifer must match.
Definition at line 34 of file FrontendInterface.php.
const PATTERN_TAG = '/^[a-zA-Z0-9_%\\-&]{1,250}$/' |
Pattern a tag must match.
Definition at line 38 of file FrontendInterface.php.
const TAG_CLASS = '%CLASS%' |
"Magic" tag for class-related entries
Definition at line 26 of file FrontendInterface.php.
const TAG_PACKAGE = '%PACKAGE%' |
"Magic" tag for package-related entries
Definition at line 30 of file FrontendInterface.php.