增加 删除节点方法

This commit is contained in:
iVampireSP.com 2023-02-09 19:11:58 +08:00
parent 75a0449ae8
commit 786cb2b076
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -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 */