
Public Member Functions | |
| getIdentifier () | |
| getBackend () | |
| set ($entryIdentifier, $data, $tags=array(), $lifetime=NULL) | |
| get ($entryIdentifier) | |
| getByTag ($tag) | |
| has ($entryIdentifier) | |
| remove ($entryIdentifier) | |
| flush () | |
| flushByTag ($tag) | |
| flushByTags (array $tags) | |
| collectGarbage () | |
| isValidEntryIdentifier ($identifier) | |
| isValidTag ($tag) | |
Public Attributes | |
| const | TAG_CLASS = '%CLASS%' |
| const | PATTERN_ENTRYIDENTIFIER = '/^[a-zA-Z0-9_%\-&]{1,250}$/' |
| const | PATTERN_TAG = '/^[a-zA-Z0-9_%\-&]{1,250}$/' |
Definition at line 37 of file interface.t3lib_cache_frontend_frontend.php.
| t3lib_cache_frontend_Frontend::collectGarbage | ( | ) |
| t3lib_cache_frontend_Frontend::flush | ( | ) |
Removes all cache entries of this cache.
Implemented in t3lib_cache_frontend_AbstractFrontend.
| t3lib_cache_frontend_Frontend::flushByTag | ( | $ | tag | ) |
Removes all cache entries of this cache which are tagged by the specified tag.
| string | The tag the entries must have |
Implemented in t3lib_cache_frontend_AbstractFrontend.
| t3lib_cache_frontend_Frontend::flushByTags | ( | array $ | tags | ) |
Removes all cache entries of this cache which are tagged by the specified tag.
| array | Array of tags to search for and to remove the cache entries, the "*" wildcard is supported |
Implemented in t3lib_cache_frontend_AbstractFrontend.
| t3lib_cache_frontend_Frontend::get | ( | $ | entryIdentifier | ) |
Finds and returns data from the cache.
| string | Something which identifies the cache entry - depends on concrete cache |
Implemented in t3lib_cache_frontend_StringFrontend, and t3lib_cache_frontend_VariableFrontend.
| t3lib_cache_frontend_Frontend::getBackend | ( | ) |
Returns the backend used by this cache
Implemented in t3lib_cache_frontend_AbstractFrontend.
| t3lib_cache_frontend_Frontend::getByTag | ( | $ | tag | ) |
Finds and returns all cache entries which are tagged by the specified tag.
| string | The tag to search for |
Implemented in t3lib_cache_frontend_StringFrontend, and t3lib_cache_frontend_VariableFrontend.
| t3lib_cache_frontend_Frontend::getIdentifier | ( | ) |
Returns this cache's identifier
Implemented in t3lib_cache_frontend_AbstractFrontend.
Referenced by t3lib_cache_Manager::registerCache().
| t3lib_cache_frontend_Frontend::has | ( | $ | entryIdentifier | ) |
Checks if a cache entry with the specified identifier exists.
| string | An identifier specifying the cache entry |
Implemented in t3lib_cache_frontend_AbstractFrontend.
| t3lib_cache_frontend_Frontend::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 t3lib_cache_frontend_AbstractFrontend.
| t3lib_cache_frontend_Frontend::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 t3lib_cache_frontend_AbstractFrontend.
| t3lib_cache_frontend_Frontend::remove | ( | $ | entryIdentifier | ) |
Removes the given cache entry from the cache.
| string | An identifier specifying the cache entry |
Implemented in t3lib_cache_frontend_AbstractFrontend.
| t3lib_cache_frontend_Frontend::set | ( | $ | entryIdentifier, | |
| $ | data, | |||
| $ | tags = array(), |
|||
| $ | lifetime = NULL | |||
| ) |
Saves data in the cache.
| string | Something which identifies the data - depends on concrete cache | |
| mixed | The data to cache - also depends on the concrete cache implementation | |
| array | Tags to associate with this cache entry | |
| integer | Lifetime of this cache entry in seconds. If NULL is specified, the default lifetime is used. "0" means unlimited liftime. |
Implemented in t3lib_cache_frontend_PhpFrontend, t3lib_cache_frontend_StringFrontend, and t3lib_cache_frontend_VariableFrontend.
| const t3lib_cache_frontend_Frontend::PATTERN_ENTRYIDENTIFIER = '/^[a-zA-Z0-9_%\-&]{1,250}$/' |
Pattern an entry identifer must match.
Definition at line 47 of file interface.t3lib_cache_frontend_frontend.php.
| const t3lib_cache_frontend_Frontend::PATTERN_TAG = '/^[a-zA-Z0-9_%\-&]{1,250}$/' |
Pattern a tag must match.
Definition at line 52 of file interface.t3lib_cache_frontend_frontend.php.
| const t3lib_cache_frontend_Frontend::TAG_CLASS = '%CLASS%' |
"Magic" tag for class-related entries
Definition at line 42 of file interface.t3lib_cache_frontend_frontend.php.
1.4.7