/** * Constructs this backend * * @param \TYPO3\Flow\Core\ApplicationContext $context Flow's application context * @param array $options Configuration options - depends on the actual backend * @throws \TYPO3\Flow\Cache\Exception */ public function __construct(\TYPO3\Flow\Core\ApplicationContext $context, array $options = array()) { if (!extension_loaded('memcache') && !extension_loaded('memcached')) { throw new \TYPO3\Flow\Cache\Exception('The PHP extension "memcache" or "memcached" must be installed and loaded in order to use the Memcache backend.', 1213987706); } parent::__construct($context, $options); }
/** * Constructs this backend * * @param \TYPO3\FLOW3\Core\ApplicationContext $context FLOW3's application context * @param array $options Configuration options - unused here * @throws \TYPO3\FLOW3\Cache\Exception */ public function __construct(\TYPO3\FLOW3\Core\ApplicationContext $context, array $options = array()) { if (!extension_loaded('apc')) { throw new \TYPO3\FLOW3\Cache\Exception('The PHP extension "apc" must be installed and loaded in order to use the APC backend.', 1232985414); } parent::__construct($context, $options); }
/** * Construct this backend * * @param \TYPO3\FLOW3\Core\ApplicationContext $context FLOW3's application context * @param array $options Configuration options * @throws \TYPO3\FLOW3\Cache\Exception if php redis module is not loaded */ public function __construct(\TYPO3\FLOW3\Core\ApplicationContext $context, array $options = array()) { if (!extension_loaded('redis')) { throw new \TYPO3\FLOW3\Cache\Exception('The PHP extension "redis" must be installed and loaded in order to use the phpredis redis backend.', 1279462933); } parent::__construct($context, $options); }
public function __construct(array $options = array()) { parent::__construct($options); $this->_connect(); }