This commit is contained in:
2023-08-25 09:37:59 +08:00
parent 28a484ee42
commit 4a607a5687
+1 -2
View File
@@ -61,7 +61,6 @@ class Redis
*/ */
public function init(): void public function init(): void
{ {
on(OnWorkerExit::class, [$this, 'destroy']);
} }
@@ -138,7 +137,7 @@ SCRIPT;
*/ */
public function destroy(): void public function destroy(): void
{ {
$this->pool()->flush($this->host, 0); $this->pool()->close($this->host);
} }