Exemplo n.º 1
0
 public function __construct($config)
 {
     $redis_config = array('tcp' => $config->redis->tcp, 'host' => $config->redis->host, 'port' => $config->redis->port, 'database' => $config->redis->database);
     $this->_redis_handler = Cache::getInstance($redis_config);
     //session前缀
     if (isset($config->redis->cache_key_prefix)) {
         $this->_cache_key_prefix = $config->redis->cache_key_prefix;
     }
     parent::__construct();
 }
Exemplo n.º 2
0
 public function __construct($config)
 {
     parent::__construct();
 }