Esempio n. 1
0
 /**
  * 初始化PhpRedis连接集合
  */
 protected static function init()
 {
     foreach (RedisConfig::getList() as $conn_name => $config_obj) {
         self::$conn_list[$conn_name] = new ConnectionObj($config_obj);
     }
     self::$conn_name_list = array_keys(self::$conn_list);
 }
Esempio n. 2
0
 /**
  * 设置连接
  */
 private function setConnection()
 {
     $this->connection = new Redis(\Qp\Kernel\Redis\RedisConfig::getFrontCache(), $this->config_data);
 }