Exemplo n.º 1
0
 /**
  * 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);
 }
Exemplo n.º 2
0
 /**
  * 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);
 }
Exemplo n.º 3
0
 /**
  * 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);
 }
Exemplo n.º 4
0
 /**
  * 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']);
 }
Exemplo n.º 5
0
 /**
  * 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);
 }
Exemplo n.º 6
0
 /**
  * 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();
 }