/**
  * Initializes the identifier prefix when setting the cache.
  *
  * @param t3lib_cache_frontend_Frontend $cache The frontend for this backend
  * @return void
  * @author Robert Lemke <*****@*****.**>
  */
 public function setCache(t3lib_cache_frontend_Frontend $cache)
 {
     parent::setCache($cache);
     $processUser = extension_loaded('posix') ? posix_getpwuid(posix_geteuid()) : array('name' => 'default');
     $pathHash = t3lib_div::shortMD5(PATH_site . $processUser['name'], 12);
     $this->identifierPrefix = 'TYPO3_' . $pathHash;
 }
 /**
  * Sets a reference to the cache frontend which uses this backend and
  * initializes the default cache directory
  *
  * @void
  * @author Robert Lemke <*****@*****.**>
  */
 public function setCache(t3lib_cache_frontend_Frontend $cache)
 {
     parent::setCache($cache);
     if (empty($this->cacheDirectory)) {
         $cacheDirectory = 'typo3temp/cache/';
         try {
             $this->setCacheDirectory($cacheDirectory);
         } catch (t3lib_cache_Exception $exception) {
         }
     }
 }
 /**
  * Constructs this backend
  *
  * @param array $options Configuration options - depends on the actual backend
  */
 public function __construct(array $options = array())
 {
     parent::__construct($options);
     if (!$this->cacheTable) {
         throw new t3lib_cache_Exception('No table to write data to has been set using the setting "cacheTable".', 1253534136);
     }
     if (!$this->tagsTable) {
         throw new t3lib_cache_Exception('No table to write tags to has been set using the setting "tagsTable".', 1253534137);
     }
     $this->initializeCommonReferences();
 }
 /**
  * Does garbage collection
  *
  * @return void
  * @author Karsten Dambekalns <*****@*****.**>
  */
 public function collectGarbage()
 {
     $this->backend->collectGarbage();
 }
 /**
  * Initializes the identifier prefix when setting the cache.
  *
  * @param t3lib_cache_frontend_Frontend $cache The frontend for this backend
  * @return void
  * @author Robert Lemke <*****@*****.**>
  * @author Dmitry Dulepov
  */
 public function setCache(t3lib_cache_frontend_Frontend $cache)
 {
     parent::setCache($cache);
     $this->identifierPrefix = 'TYPO3_' . md5(PATH_site) . '_';
 }
 /**
  * Construct this backend
  *
  * @param array $options Configuration options
  * @throws t3lib_cache_Exception if php redis module is not loaded
  * @author Christopher Hlubek <*****@*****.**>
  * @author Christian Kuhn <*****@*****.**>
  */
 public function __construct(array $options = array())
 {
     if (!extension_loaded('redis')) {
         throw new t3lib_cache_Exception('The PHP extension "redis" must be installed and loaded in order to use the redis backend.', 1279462933);
     }
     parent::__construct($options);
     $this->initializeObject();
 }