From 786cb2b076da6e1b6a2e42dbdafc435f9bcea97b Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Thu, 9 Feb 2023 19:11:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E8=8A=82=E7=82=B9=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Support/ClusterSupport.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Support/ClusterSupport.php b/app/Support/ClusterSupport.php index a1c03de..0d3e079 100644 --- a/app/Support/ClusterSupport.php +++ b/app/Support/ClusterSupport.php @@ -74,6 +74,11 @@ public static function updateThisNode($data = []): void ClusterSupport::hset('nodes', $node_id, $node); } + public static function removeNode($node_id): void + { + self::hdel('nodes', $node_id); + } + public static function hset($key, $value, $data = []): void { /** @noinspection PhpUndefinedMethodInspection */