2 namespace TYPO3\CMS\Core\Cache\Frontend;
18 use TYPO3\CMS\Core\Cache\Exception\InvalidDataException;
51 public function set($entryIdentifier, $sourceCode, array $tags = array(), $lifetime = null)
54 throw new \InvalidArgumentException(
'"' . $entryIdentifier .
'" is not a valid cache entry identifier.', 1264023823);
56 if (!is_string($sourceCode)) {
59 foreach ($tags as $tag) {
61 throw new \InvalidArgumentException(
'"' . $tag .
'" is not a valid tag for a cache entry.', 1264023825);
64 $sourceCode =
'<?php' . LF . $sourceCode . LF .
'#';
65 $this->backend->set($entryIdentifier, $sourceCode, $tags, $lifetime);
77 return $this->backend->requireOnce($entryIdentifier);