48 public function set($entryIdentifier, $data, array $tags = array(), $lifetime = NULL) {
49 if (!$this->cache instanceof \
TYPO3\CMS\Core\
Cache\Frontend\FrontendInterface) {
50 throw new \TYPO3\CMS\Core\Cache\Exception(
'No cache frontend has been set yet via setCache().', 1238244992);
52 if (!is_string($data)) {
53 throw new \TYPO3\CMS\Core\Cache\Exception\InvalidDataException(
'The specified data is of type "' . gettype($data) .
'" but a string is expected.', 1238244993);
55 $this->entries[$entryIdentifier] = $data;
56 foreach ($tags as $tag) {
57 $this->tagsAndEntries[$tag][$entryIdentifier] = TRUE;
68 public function get($entryIdentifier) {
69 return isset($this->entries[$entryIdentifier]) ? $this->entries[$entryIdentifier] : FALSE;
79 public function has($entryIdentifier) {
80 return isset($this->entries[$entryIdentifier]);
90 public function remove($entryIdentifier) {
91 if (isset($this->entries[$entryIdentifier])) {
92 unset($this->entries[$entryIdentifier]);
93 foreach ($this->tagsAndEntries as $tag => $_) {
94 if (isset($this->tagsAndEntries[$tag][$entryIdentifier])) {
95 unset($this->tagsAndEntries[$tag][$entryIdentifier]);
113 if (isset($this->tagsAndEntries[$tag])) {
114 return array_keys($this->tagsAndEntries[$tag]);
127 $this->entries = array();
128 $this->tagsAndEntries = array();
140 foreach ($identifiers as $identifier) {
141 $this->
remove($identifier);
findIdentifiersByTag($tag)