38 public function set($entryIdentifier, $string, array $tags = array(), $lifetime = NULL) {
40 throw new \InvalidArgumentException(
'"' . $entryIdentifier .
'" is not a valid cache entry identifier.', 1233057566);
42 if (!is_string($string)) {
43 throw new \TYPO3\CMS\Core\Cache\Exception\InvalidDataException(
'Given data is of type "' . gettype($string) .
'", but a string is expected for string cache.', 1222808333);
45 foreach ($tags as $tag) {
47 throw new \InvalidArgumentException(
'"' . $tag .
'" is not a valid tag for a cache entry.', 1233057512);
50 $this->backend->set($entryIdentifier, $string, $tags, $lifetime);
61 public function get($entryIdentifier) {
63 throw new \InvalidArgumentException(
'"' . $entryIdentifier .
'" is not a valid cache entry identifier.', 1233057752);
65 return $this->backend->get($entryIdentifier);
78 throw new \InvalidArgumentException(
'"' . $tag .
'" is not a valid tag for a cache entry.', 1233057772);
81 $identifiers = $this->backend->findIdentifiersByTag($tag);
83 $entries[] = $this->backend->get($identifier);
isValidEntryIdentifier($identifier)