/** * Constructs this backend * * @param string $context FLOW3's application context * @param array $options Configuration options - unused here * @throws \TYPO3\CMS\Core\Cache\Exception */ public function __construct($context, array $options = array()) { if (!extension_loaded('apc')) { throw new \TYPO3\CMS\Core\Cache\Exception('The PHP extension "apc" must be installed and loaded in order to use the APC backend.', 1232985414); } parent::__construct($context, $options); }
/** * Constructs this backend * * @param string $context FLOW3's application context * @param array $options Configuration options * @throws \TYPO3\CMS\Core\Cache\Exception If wincache PHP extension is not loaded */ public function __construct($context, array $options = array()) { if (!extension_loaded('wincache')) { throw new \TYPO3\CMS\Core\Cache\Exception('The PHP extension "wincache" must be installed and loaded in order to use the wincache backend.', 1343331520); } parent::__construct($context, $options); }
/** * Constructs this backend * * @param string $context FLOW3's application context * @param array $options Configuration options * @throws \TYPO3\CMS\Core\Cache\Exception If xcache PHP extension is not loaded */ public function __construct($context, array $options = array()) { if (!extension_loaded('xcache')) { throw new Exception('The PHP extension "xcache" must be installed and loaded in order to use the xcache backend.', 1363116592); } parent::__construct($context, $options); }
/** * Constructs this backend * * @param string $context FLOW3's application context * @param array $options Configuration options - unused here * @throws \TYPO3\CMS\Core\Cache\Exception */ public function __construct($context, array $options = []) { if (!extension_loaded('apc')) { throw new \TYPO3\CMS\Core\Cache\Exception('The PHP extension "apc" or "apcu" must be installed and loaded in order to use the APC backend.', 1232985414); } if (PHP_SAPI === 'cli' && ini_get('apc.enable_cli') == 0) { throw new \TYPO3\CMS\Core\Cache\Exception('The APC backend cannot be used because apc is disabled on CLI.', 1232985415); } parent::__construct($context, $options); }
/** * Constructs this backend * * @param string $context FLOW3's application context * @param array $options Configuration options - depends on the actual backend * @throws \TYPO3\CMS\Core\Cache\Exception if memcache is not installed */ public function __construct($context, array $options = array()) { if (!extension_loaded('memcache')) { throw new \TYPO3\CMS\Core\Cache\Exception('The PHP extension "memcache" must be installed and loaded in ' . 'order to use the Memcached backend.', 1213987706); } parent::__construct($context, $options); }
/** * Construct this backend */ public function __construct() { parent::__construct('production', array()); }
/** * Construct this backend * * @param string $context FLOW3's application context * @param array $options Configuration options * @throws \TYPO3\CMS\Core\Cache\Exception if php redis module is not loaded */ public function __construct($context, array $options = array()) { if (!extension_loaded('redis')) { throw new \TYPO3\CMS\Core\Cache\Exception('The PHP extension "redis" must be installed and loaded in order to use the redis backend.', 1279462933); } parent::__construct($context, $options); }
/** * Constructs this backend * * @param string $context FLOW3's application context * @param array $options Configuration options - depends on the actual backend * @throws Exception if memcache is not installed */ public function __construct($context, array $options = array()) { if (!extension_loaded('memcache') && !extension_loaded('memcached')) { throw new Exception('The PHP extension "memcache" or "memcached" must be installed and loaded in ' . 'order to use the Memcached backend.', 1213987706); } parent::__construct($context, $options); if ($this->usedPeclModule === '') { if (extension_loaded('memcache')) { $this->usedPeclModule = 'memcache'; } elseif (extension_loaded('memcached')) { $this->usedPeclModule = 'memcached'; } } }