你的使用的方法有问题,你现在new的是原生的Redis方法呀!如果要使用协程的客户端,则应该 new Swoole\Coroutine\Redis()如果要使用异步客户端,则应该new swoole_redis()
你的使用的方法有问题,你现在new的是原生的
Redis
方法呀!如果要使用协程的客户端,则应该
new Swoole\Coroutine\Redis()
如果要使用异步客户端,则应该
new swoole_redis()