|
|
@@ -72,7 +72,8 @@ class HttpServerRedisToSql
|
|
|
$redisconfig = $this->redisonfig;
|
|
|
//go(function () use ($redisconfig) {
|
|
|
$begint = microtime(true);
|
|
|
- $redis = new Swoole\Coroutine\Redis();
|
|
|
+ //$redis = new Swoole\Coroutine\Redis();
|
|
|
+ $redis = new \Redis();
|
|
|
$ret = $redis->connect($redisconfig['host'], $redisconfig['port']);
|
|
|
if (!$ret) {
|
|
|
echo "redis 连接失败!";
|