/** * Constructor. * * @param array $options Caching options object. * * @since 1.0 * @throws \RuntimeException */ public function __construct($options = array()) { if (!extension_loaded('wincache') || !is_callable('wincache_ucache_get')) { throw new \RuntimeException('WinCache not supported.'); } parent::__construct($options); }
/** * Constructor. * * @param mixed $options An options array, or an object that implements \ArrayAccess * * @since 1.0 * @throws \RuntimeException */ public function __construct($options = array()) { if (!extension_loaded('redis') || !class_exists('\\Redis')) { throw new \RuntimeException('Redis not supported.'); } parent::__construct($options); }
/** * Constructor. * * @param mixed $options An options array, or an object that implements \ArrayAccess * * @since 1.0 * @throws \RuntimeException */ public function __construct($options = array()) { if (!extension_loaded('apc') || !is_callable('apc_fetch')) { throw new \RuntimeException('APC not supported.'); } parent::__construct($options); }
/** * Constructor. * * @param mixed $options An options array, or an object that implements \ArrayAccess * * @since 1.0 * @throws \RuntimeException */ public function __construct($options = array()) { parent::__construct($options); if (!isset($this->options['file.locking'])) { $this->options['file.locking'] = true; } $this->checkFilePath($this->options['file.path']); }
/** * Constructor. * * @param mixed $options An options array, or an object that implements \ArrayAccess * * @since 1.0 * @throws \RuntimeException */ public function __construct($options = array()) { if (!isset($options['file.locking'])) { $options['file.locking'] = true; } if (!isset($options['file.path'])) { throw new \RuntimeException('The file.path option must be set.'); } $this->checkFilePath($options['file.path']); parent::__construct($options); }
/** * Constructor. * * @param mixed $options An options array, or an object that implements \ArrayAccess * * @since 1.0 * @throws \RuntimeException */ public function __construct($options = array()) { parent::__construct($options); $this->db = new \ArrayObject(); }