41 $this->useIgBinary = extension_loaded(
'igbinary');
56 public function set($entryIdentifier, $variable, array $tags = array(), $lifetime = NULL) {
58 throw new \InvalidArgumentException(
'"' . $entryIdentifier .
'" is not a valid cache entry identifier.', 1233058264);
60 foreach ($tags as $tag) {
62 throw new \InvalidArgumentException(
'"' . $tag .
'" is not a valid tag for a cache entry.', 1233058269);
65 if (is_array(
$GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
't3lib/cache/frontend/class.t3lib_cache_frontend_variablefrontend.php'][
'set'])) {
66 foreach (
$GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
't3lib/cache/frontend/class.t3lib_cache_frontend_variablefrontend.php'][
'set'] as $_funcRef) {
68 'entryIdentifier' => &$entryIdentifier,
69 'variable' => &$variable,
71 'lifetime' => &$lifetime
76 if ($this->useIgBinary === TRUE) {
77 $this->backend->set($entryIdentifier, igbinary_serialize($variable), $tags, $lifetime);
79 $this->backend->set($entryIdentifier, serialize($variable), $tags, $lifetime);
91 public function get($entryIdentifier) {
93 throw new \InvalidArgumentException(
'"' . $entryIdentifier .
'" is not a valid cache entry identifier.', 1233058294);
95 $rawResult = $this->backend->get($entryIdentifier);
96 if ($rawResult === FALSE) {
99 return $this->useIgBinary === TRUE ? igbinary_unserialize($rawResult) : unserialize($rawResult);
113 throw new \InvalidArgumentException(
'"' . $tag .
'" is not a valid tag for a cache entry.', 1233058312);
116 $identifiers = $this->backend->findIdentifiersByTag($tag);
118 $rawResult = $this->backend->get($identifier);
119 if ($rawResult !== FALSE) {
120 $entries[] = $this->useIgBinary === TRUE ? igbinary_unserialize($rawResult) : unserialize($rawResult);
static callUserFunction($funcName, &$params, &$ref, $checkPrefix='', $errorMode=0)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
isValidEntryIdentifier($identifier)