public function __construct()
 {
     parent::__construct();
     if (array_key_exists('cache', $this->spockzConfig) && is_array($this->spockzConfig['cache'])) {
         $this->conf = $this->loadConfig('spockz', 'cache');
     } else {
         $this->conf = array('ttl' => 1, 'driver' => 'Memcache', 'memcache' => array('hostname' => 'localhost', 'port' => 11211), 'filesystem' => array('cache_dir' => APPPATH . '/cache'));
     }
     $this->loadDriver($this->conf['driver']);
 }
 public function __construct()
 {
     parent::__construct();
     $config = $this->loadConfig(__CLASS__);
     # Read config and instantiate driver with correct options.
     assert(array_key_exists('driver', $config));
     # Read additional config:
     foreach ($this->requiredConfs as $requiredConf) {
         $config[$requiredConf] = $this->CI->config->item($requiredConf);
     }
     $driver = new $config['driver']($config);
     assert($driver instanceof Spockz_Session_Driver);
     $this->driver = $driver;
 }