getConf('REDIS'); $config = new RedisConfig($db_config); $this->connect = new \EasySwoole\Redis\Redis($config); // $this->connect->connect($db_config['host'], $db_config['port']); //连接Redis // $this->connect->auth($db_config['auth']); //密码验证 } public function getConnect(){ return $this->connect; } public function get($key) { } }