增加 删除节点方法
This commit is contained in:
parent
75a0449ae8
commit
786cb2b076
@ -74,6 +74,11 @@ public static function updateThisNode($data = []): void
|
|||||||
ClusterSupport::hset('nodes', $node_id, $node);
|
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
|
public static function hset($key, $value, $data = []): void
|
||||||
{
|
{
|
||||||
/** @noinspection PhpUndefinedMethodInspection */
|
/** @noinspection PhpUndefinedMethodInspection */
|
||||||
|
Loading…
Reference in New Issue
Block a user