This commit is contained in:
2021-07-12 17:45:04 +08:00
parent 25c00ea088
commit 4736478ddf
7 changed files with 321 additions and 689 deletions
+3 -3
View File
@@ -22,7 +22,7 @@ use Swoole\Runtime;
class Redis extends Component
{
private ?ClientsPool $clientsPool = null;
private ?Pool $clientsPool = null;
/**
@@ -114,10 +114,10 @@ class Redis extends Component
/**
* @return ClientsPool
* @return Pool
* @throws Exception
*/
public function getPool(): ClientsPool
public function getPool(): Pool
{
if (!$this->clientsPool) {
$this->clientsPool = Snowflake::app()->getClientsPool();