46 public function set($entryIdentifier, $sourceCode, array $tags = [], $lifetime =
null)
49 throw new \InvalidArgumentException(
'"' . $entryIdentifier .
'" is not a valid cache entry identifier.', 1264023823);
51 if (!is_string($sourceCode)) {
54 foreach ($tags as $tag) {
56 throw new \InvalidArgumentException(
'"' . $tag .
'" is not a valid tag for a cache entry.', 1264023825);
59 $sourceCode =
'<?php' . LF . $sourceCode . LF .
'#';
60 $this->backend->set($entryIdentifier, $sourceCode, $tags, $lifetime);
70 public function get($entryIdentifier)
73 throw new \InvalidArgumentException(
'"' . $entryIdentifier .
'" is not a valid cache entry identifier.', 1233057753);
75 return $this->backend->get($entryIdentifier);
88 trigger_error(
'PhpFrontend->getByTag() will be removed in TYPO3 v10.0. Avoid using this method since it is not compliant to PSR-6.', E_USER_DEPRECATED);
90 throw new \InvalidArgumentException(
'"' . $tag .
'" is not a valid tag for a cache entry.', 1233057773);
93 $identifiers = $this->backend->findIdentifiersByTag($tag);
108 return $this->backend->requireOnce($entryIdentifier);
120 public function require(
string $entryIdentifier)
122 return $this->backend->require($entryIdentifier);