This commit is contained in:
2020-09-11 01:27:49 +08:00
parent 00d64ec73d
commit 9ef53cd401
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -55,6 +55,7 @@ class Redis extends Pool
public function getByChannel($coroutineName, $config)
{
if (!$this->hasItem($coroutineName)) {
$this->success('create redis client -> ' . $config['host'] . ':' . $this->size($coroutineName));
return $this->saveClient($coroutineName, $this->createConnect($config));
}
[$time, $client] = $this->get($coroutineName);