getConf('REDIS'); $this->connect = new \Redis(); $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) { } }