2 namespace TYPO3\CMS\Core\Cache\Frontend;
51 if (preg_match(self::PATTERN_ENTRYIDENTIFIER,
$identifier) !== 1) {
52 throw new \InvalidArgumentException(
'"' .
$identifier .
'" is not a valid cache identifier.', 1203584729);
56 $this->backend->setCache($this);
89 public function has($entryIdentifier)
92 throw new \InvalidArgumentException(
'"' . $entryIdentifier .
'" is not a valid cache entry identifier.', 1233058486);
94 return $this->backend->has($entryIdentifier);
105 public function remove($entryIdentifier)
108 throw new \InvalidArgumentException(
'"' . $entryIdentifier .
'" is not a valid cache entry identifier.', 1233058495);
110 return $this->backend->remove($entryIdentifier);
121 $this->backend->flush();
135 throw new \InvalidArgumentException(
'"' . $tag .
'" is not a valid tag for a cache entry.', 1233057359);
137 if (is_array(
$GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
't3lib/cache/frontend/class.t3lib_cache_frontend_abstractfrontend.php'][
'flushByTag'])) {
138 foreach (
$GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
't3lib/cache/frontend/class.t3lib_cache_frontend_abstractfrontend.php'][
'flushByTag'] as $_funcRef) {
139 $params = array(
'tag' => $tag);
144 $this->backend->flushByTag($tag);
156 $this->backend->collectGarbage();
168 return preg_match(self::PATTERN_ENTRYIDENTIFIER,
$identifier) === 1;
180 return preg_match(self::PATTERN_TAG, $tag) === 1;