/** * Constructs this backend * * @param ApplicationContext $context Flow's application context * @param array $options Configuration options - unused here * @throws Exception */ public function __construct(ApplicationContext $context, array $options = []) { if (!extension_loaded('apc')) { throw new Exception('The PHP extension "apc" must be installed and loaded in order to use the APC backend.', 1232985414); } parent::__construct($context, $options); }
/** * @param ApplicationContext $context * @param array $options * @param \Redis $redis * @throws CacheException */ public function __construct(ApplicationContext $context, array $options = [], \Redis $redis = null) { parent::__construct($context, $options); if (null === $redis) { $redis = $this->getRedisClient(); } $this->redis = $redis; }
/** * @param \TYPO3\Flow\Core\ApplicationContext $context * @param array $options * @param \Redis $redis * @throws CacheException */ public function __construct(\TYPO3\Flow\Core\ApplicationContext $context, array $options = array(), \Redis $redis = NULL) { parent::__construct($context, $options); if (NULL === $redis) { $redis = $this->getRedisClient(); } $this->redis = $redis; }
/** * Constructs this backend * * @param ApplicationContext $context Flow's application context * @param array $options Configuration options - depends on the actual backend * @throws Exception */ public function __construct(ApplicationContext $context, array $options = []) { 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 Memcache backend.', 1213987706); } parent::__construct($context, $options); }