{"message":"Connection refused","status":500,"data":[],"debug":{"name":"RedisException","file":"\/www\/wwwroot\/eduapi.bc2c.cn\/vendor\/topthink\/framework\/src\/think\/cache\/driver\/Redis.php","line":63,"code":0,"message":"Connection refused","trace":[{"file":"\/www\/wwwroot\/eduapi.bc2c.cn\/vendor\/topthink\/framework\/src\/think\/cache\/driver\/Redis.php","line":63,"function":"connect","class":"Redis","type":"->"},{"function":"__construct","class":"think\\cache\\driver\\Redis","type":"->"},{"file":"\/www\/wwwroot\/eduapi.bc2c.cn\/vendor\/topthink\/framework\/src\/think\/Container.php","line":395,"function":"newInstanceArgs","class":"ReflectionClass","type":"->"},{"file":"\/www\/wwwroot\/eduapi.bc2c.cn\/vendor\/topthink\/framework\/src\/think\/Manager.php","line":139,"function":"invokeClass","class":"think\\Container","type":"->"},{"file":"\/www\/wwwroot\/eduapi.bc2c.cn\/vendor\/topthink\/framework\/src\/think\/Manager.php","line":66,"function":"createDriver","class":"think\\Manager","type":"->"},{"file":"\/www\/wwwroot\/eduapi.bc2c.cn\/vendor\/topthink\/framework\/src\/think\/Manager.php","line":56,"function":"getDriver","class":"think\\Manager","type":"->"},{"file":"\/www\/wwwroot\/eduapi.bc2c.cn\/vendor\/topthink\/framework\/src\/think\/Cache.php","line":90,"function":"driver","class":"think\\Manager","type":"->"},{"file":"\/www\/wwwroot\/eduapi.bc2c.cn\/vendor\/topthink\/framework\/src\/think\/Db.php","line":38,"function":"store","class":"think\\Cache","type":"->"},{"function":"__make","class":"think\\Db","type":"::"},{"file":"\/www\/wwwroot\/eduapi.bc2c.cn\/vendor\/topthink\/framework\/src\/think\/Container.php","line":385,"function":"invokeArgs","class":"ReflectionMethod","type":"->"},{"file":"\/www\/wwwroot\/eduapi.bc2c.cn\/vendor\/topthink\/framework\/src\/think\/Container.php","line":252,"function":"invokeClass","class":"think\\Container","type":"->"},{"file":"\/www\/wwwroot\/eduapi.bc2c.cn\/vendor\/topthink\/framework\/src\/think\/Container.php","line":131,"function":"make","class":"think\\Container","type":"->"},{"file":"\/www\/wwwroot\/eduapi.bc2c.cn\/vendor\/topthink\/framework\/src\/think\/Container.php","line":511,"function":"get","class":"think\\Container","type":"->"},{"file":"\/www\/wwwroot\/eduapi.bc2c.cn\/vendor\/topthink\/framework\/src\/think\/service\/ModelService.php","line":25,"function":"__get","class":"think\\Container","type":"->"},{"function":"boot","class":"think\\service\\ModelService","type":"->"},{"file":"\/www\/wwwroot\/eduapi.bc2c.cn\/vendor\/topthink\/framework\/src\/think\/Container.php","line":329,"function":"invokeArgs","class":"ReflectionMethod","type":"->"},{"file":"\/www\/wwwroot\/eduapi.bc2c.cn\/vendor\/topthink\/framework\/src\/think\/Container.php","line":362,"function":"invokeMethod","class":"think\\Container","type":"->"},{"file":"\/www\/wwwroot\/eduapi.bc2c.cn\/vendor\/topthink\/framework\/src\/think\/App.php","line":224,"function":"invoke","class":"think\\Container","type":"->"},{"file":"\/www\/wwwroot\/eduapi.bc2c.cn\/vendor\/topthink\/framework\/src\/think\/App.php","line":496,"function":"bootService","class":"think\\App","type":"->"},{"function":"think\\{closure}","class":"think\\App","type":"->"},{"file":"\/www\/wwwroot\/eduapi.bc2c.cn\/vendor\/topthink\/framework\/src\/think\/App.php","line":497,"function":"array_walk"},{"file":"\/www\/wwwroot\/eduapi.bc2c.cn\/vendor\/topthink\/framework\/src\/think\/initializer\/BootService.php","line":24,"function":"boot","class":"think\\App","type":"->"},{"file":"\/www\/wwwroot\/eduapi.bc2c.cn\/vendor\/topthink\/framework\/src\/think\/App.php","line":462,"function":"init","class":"think\\initializer\\BootService","type":"->"},{"file":"\/www\/wwwroot\/eduapi.bc2c.cn\/vendor\/topthink\/framework\/src\/think\/Http.php","line":186,"function":"initialize","class":"think\\App","type":"->"},{"file":"\/www\/wwwroot\/eduapi.bc2c.cn\/vendor\/topthink\/framework\/src\/think\/Http.php","line":163,"function":"initialize","class":"think\\Http","type":"->"},{"file":"\/www\/wwwroot\/eduapi.bc2c.cn\/public\/index.php","line":15,"function":"run","class":"think\\Http","type":"->"}],"source":{"first":54,"source":["            $this->options = array_merge($this->options, $options);\n","        }\n","\n","        if (extension_loaded('redis')) {\n","            $this->handler = new \\Redis;\n","\n","            if ($this->options['persistent']) {\n","                $this->handler->pconnect($this->options['host'], (int) $this->options['port'], (int) $this->options['timeout'], 'persistent_id_' . $this->options['select']);\n","            } else {\n","                $this->handler->connect($this->options['host'], (int) $this->options['port'], (int) $this->options['timeout']);\n","            }\n","\n","            if ('' != $this->options['password']) {\n","                $this->handler->auth($this->options['password']);\n","            }\n","        } elseif (class_exists('\\Predis\\Client')) {\n","            $params = [];\n","            foreach ($this->options as $key => $val) {\n","                if (in_array($key, ['aggregate', 'cluster', 'connections', 'exceptions', 'prefix', 'profile', 'replication', 'parameters'])) {\n"]}}}