/**
  * Constructs this backend
  *
  * @param mixed $options Configuration options - unused here
  * @author Robert Lemke <*****@*****.**>
  * @author Karsten Dambekalns <*****@*****.**>
  */
 public function __construct($options = array())
 {
     if (!extension_loaded('apc')) {
         throw new t3lib_cache_Exception('The PHP extension "apc" must be installed and loaded in order to use the APC backend.', 1232985414);
     }
     parent::__construct($options);
 }
 /**
  * Constructs this backend
  *
  * @param array $options Configuration options - depends on the actual backend
  */
 public function __construct(array $options = array())
 {
     parent::__construct($options);
     if (is_null($this->maximumPathLength)) {
         $this->maximumPathLength = t3lib_div::getMaximumPathLength();
     }
 }
 /**
  * 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();
 }
 /**
  * Constructs this backend
  *
  * @param mixed $options Configuration options - depends on the actual backend
  * @author Christian Kuhn <*****@*****.**>
  */
 public function __construct(array $options = array())
 {
     parent::__construct($options);
     $this->connect();
 }
 /**
  * Constructs this backend
  *
  * @param mixed $options Configuration options - depends on the actual backend
  * @author Robert Lemke <*****@*****.**>
  */
 public function __construct($options = array())
 {
     if (!extension_loaded('memcache')) {
         throw new t3lib_cache_Exception('The PHP extension "memcached" must be installed and loaded in ' . 'order to use the Memcached backend.', 1213987706);
     }
     parent::__construct($options);
     $this->memcache = new Memcache();
     $defaultPort = ini_get('memcache.default_port');
     if (!count($this->servers)) {
         throw new t3lib_cache_Exception('No servers were given to Memcache', 1213115903);
     }
     foreach ($this->servers as $serverConfiguration) {
         if (substr($serverConfiguration, 0, 7) == 'unix://') {
             $host = $serverConfiguration;
             $port = 0;
         } else {
             if (substr($serverConfiguration, 0, 6) === 'tcp://') {
                 $serverConfiguration = substr($serverConfiguration, 6);
             }
             if (strstr($serverConfiguration, ':') !== FALSE) {
                 list($host, $port) = explode(':', $serverConfiguration, 2);
             } else {
                 $host = $serverConfiguration;
                 $port = $defaultPort;
             }
         }
         if ($this->serverConnected) {
             $this->memcache->addserver($host, $port);
         } else {
             // pconnect throws PHP warnings when it cannot connect!
             $this->serverConnected = @$this->memcache->pconnect($host, $port);
         }
     }
     if (!$this->serverConnected) {
         t3lib_div::sysLog('Unable to connect to any Memcached server', 'core', 3);
     }
 }
 /**
  * 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();
 }