47 if (preg_match(self::PATTERN_ENTRYIDENTIFIER,
$identifier) !== 1) {
48 throw new \InvalidArgumentException(
'"' .
$identifier .
'" is not a valid cache identifier.', 1203584729);
52 $this->backend->setCache($this);
83 public function has($entryIdentifier) {
85 throw new \InvalidArgumentException(
'"' . $entryIdentifier .
'" is not a valid cache entry identifier.', 1233058486);
87 return $this->backend->has($entryIdentifier);
98 public function remove($entryIdentifier) {
100 throw new \InvalidArgumentException(
'"' . $entryIdentifier .
'" is not a valid cache entry identifier.', 1233058495);
102 return $this->backend->remove($entryIdentifier);
112 $this->backend->flush();
125 throw new \InvalidArgumentException(
'"' . $tag .
'" is not a valid tag for a cache entry.', 1233057359);
127 if (is_array(
$GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
't3lib/cache/frontend/class.t3lib_cache_frontend_abstractfrontend.php'][
'flushByTag'])) {
128 foreach (
$GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
't3lib/cache/frontend/class.t3lib_cache_frontend_abstractfrontend.php'][
'flushByTag'] as $_funcRef) {
129 $params = array(
'tag' => $tag);
133 if ($this->backend instanceof \
TYPO3\CMS\Core\
Cache\Backend\TaggableBackendInterface) {
134 $this->backend->flushByTag($tag);
145 $this->backend->collectGarbage();
156 return preg_match(self::PATTERN_ENTRYIDENTIFIER,
$identifier) === 1;
167 return preg_match(self::PATTERN_TAG, $tag) === 1;
static callUserFunction($funcName, &$params, &$ref, $checkPrefix='', $errorMode=0)
__construct($identifier, \TYPO3\CMS\Core\Cache\Backend\BackendInterface $backend)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
isValidEntryIdentifier($identifier)