From 4a607a5687138307552fd45e496314abe5248d21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 25 Aug 2023 09:37:59 +0800 Subject: [PATCH] qqq --- kiri-engine/Redis/Redis.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kiri-engine/Redis/Redis.php b/kiri-engine/Redis/Redis.php index e7acb2bc..39ce4978 100644 --- a/kiri-engine/Redis/Redis.php +++ b/kiri-engine/Redis/Redis.php @@ -61,7 +61,6 @@ class Redis */ public function init(): void { - on(OnWorkerExit::class, [$this, 'destroy']); } @@ -138,7 +137,7 @@ SCRIPT; */ public function destroy(): void { - $this->pool()->flush($this->host, 0); + $this->pool()->close($this->host); }