35 'Usage of class %s will be removed in TYPO3 v10.0, use %s instead',
37 VariableFrontend::class
54 public function set($entryIdentifier, $string, array $tags = [], $lifetime =
null)
57 throw new \InvalidArgumentException(
'"' . $entryIdentifier .
'" is not a valid cache entry identifier.', 1233057566);
59 if (!is_string($string)) {
60 throw new InvalidDataException(
'Given data is of type "' . gettype($string) .
'", but a string is expected for string cache.', 1222808333);
62 foreach ($tags as $tag) {
64 throw new \InvalidArgumentException(
'"' . $tag .
'" is not a valid tag for a cache entry.', 1233057512);
67 $this->backend->set($entryIdentifier, $string, $tags, $lifetime);
77 public function get($entryIdentifier)
80 throw new \InvalidArgumentException(
'"' . $entryIdentifier .
'" is not a valid cache entry identifier.', 1233057752);
82 return $this->backend->get($entryIdentifier);
95 trigger_error(
'StringFrontend->getByTag() will be removed in TYPO3 v10.0. Avoid using this method since it is not compliant to PSR-6.', E_USER_DEPRECATED);
97 throw new \InvalidArgumentException(
'"' . $tag .
'" is not a valid tag for a cache entry.', 1233057772);
100 $identifiers = $this->backend->findIdentifiersByTag($tag);