From 284f93cccc03603e616cf96b8cab847fe6b33b6a Mon Sep 17 00:00:00 2001 From: walkor Date: Fri, 7 Apr 2023 18:35:41 +0800 Subject: [PATCH] Update Client.php --- src/Client.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Client.php b/src/Client.php index e77347f..c43eb33 100644 --- a/src/Client.php +++ b/src/Client.php @@ -15,6 +15,7 @@ use Revolt\EventLoop; use Workerman\Connection\AsyncTcpConnection; +use Workerman\Redis\Protocols\Redis; use Workerman\Timer; /** @@ -323,6 +324,7 @@ public function connect() $timeout = isset($this->_options['connect_timeout']) ? $this->_options['connect_timeout'] : 5; $context = isset($this->_options['context']) ? $this->_options['context'] : []; $this->_connection = new AsyncTcpConnection($this->_address, $context); + $this->_connection->protocol = Redis::class; if(!empty($this->_options['ssl'])){ $this->_connection->transport = 'ssl'; }