This commit is contained in:
2020-09-11 01:29:04 +08:00
parent 9ef53cd401
commit 2aa78031d6
+1
View File
@@ -40,6 +40,7 @@ class Redis extends Pool
if (Context::hasContext($coroutineName)) {
return Context::getContext($coroutineName);
} else if (!$this->hasItem($coroutineName)) {
$this->success('create redis client -> ' . $config['host'] . ':' . $this->size($coroutineName));
return $this->saveClient($coroutineName, $this->createConnect($config));
}
return $this->getByChannel($coroutineName, $config);