35 public function set($entryIdentifier, $variable, array $tags = [], $lifetime =
null)
38 throw new \InvalidArgumentException(
39 '"' . $entryIdentifier .
'" is not a valid cache entry identifier.',
43 foreach ($tags as $tag) {
45 throw new \InvalidArgumentException(
'"' . $tag .
'" is not a valid tag for a cache entry.', 1233058269);
49 foreach (
$GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
't3lib/cache/frontend/class.t3lib_cache_frontend_variablefrontend.php'][
'set'] ?? [] as $_funcRef) {
51 'entryIdentifier' => &$entryIdentifier,
52 'variable' => &$variable,
54 'lifetime' => &$lifetime
56 GeneralUtility::callUserFunction($_funcRef, $params, $this);
59 $variable = serialize($variable);
61 $this->backend->set($entryIdentifier, $variable, $tags, $lifetime);
72 public function get($entryIdentifier)
75 throw new \InvalidArgumentException(
76 '"' . $entryIdentifier .
'" is not a valid cache entry identifier.',
80 $rawResult = $this->backend->get($entryIdentifier);
81 if ($rawResult ===
false) {
98 trigger_error(
'VariableFrontend->getByTag() will be removed in TYPO3 v10.0. Avoid using this method since it is not compliant to PSR-6.', E_USER_DEPRECATED);
100 throw new \InvalidArgumentException(
'"' . $tag .
'" is not a valid tag for a cache entry.', 1233058312);
103 $identifiers = $this->backend->findIdentifiersByTag($tag);
106 if ($rawResult !==
false) {