/** * Class constructor. * * @param \Phalcon\Cache\FrontendInterface $frontend * @param array $options * @throws \Phalcon\Cache\Exception */ public function __construct($frontend, $options = null) { if (!isset($options['redis'])) { throw new Exception("Parameter 'redis' is required"); } parent::__construct($frontend, $options); }
/** * Class constructor. * * @param \Phalcon\Cache\FrontendInterface $frontend * @param array $options * @throws \Phalcon\Cache\Exception */ public function __construct($frontend, $options = array()) { if (!isset($options['db'])) { throw new Exception("Parameter 'db' is required"); } if (!isset($options['table'])) { throw new Exception("Parameter 'table' is required"); } parent::__construct($frontend, $options); }
/** * Class constructor. * * @param \Phalcon\Cache\FrontendInterface $frontend * @param array $options * @throws \Phalcon\Cache\Exception */ public function __construct(FrontendInterface $frontend, $options = array()) { if (!isset($options['db'])) { throw new Exception("Parameter 'db' is required"); } if (!$options['db'] instanceof DbAdapterInterface) { throw new Exception("Parameter 'db' must implement Phalcon\\Db\\AdapterInterface"); } if (!isset($options['table'])) { throw new Exception("Parameter 'table' is required"); } $this->db = $options['db']; $this->table = $options['table']; parent::__construct($frontend, $options); }
/** * Phalcon\Cache\Backend\Wincache constructor * * @param \Phalcon\Cache\FrontendInterface $frontend * @param array $options * @throws \Phalcon\Cache\Exception */ public function __construct($frontend, $options = null) { parent::__construct($frontend, $options); }