class Clustering::Discovery
- Clustering::Discovery
- Reference
- Object
Defined in:
redis_service_manager/clustering/discovery.crConstructors
Instance Method Summary
- #[](key)
- #[]?(key)
-
#find(key : String) : URI
Consistent hash lookup
-
#find?(key : String) : URI | Nil
Consistent hash lookup
- #last_updated : Time
-
#node_hash : Hash(String, URI)
Returns the list of node IDs => URI mapping
-
#nodes : Array(URI)
Returns the list of node URIs from the
rendezvous-hash
- #on_rebalance(&callback : RendezvousHash -> )
-
#own_node?(key : String) : Bool
Determine if key maps to current node
- #rebalance_callbacks : Array(RendezvousHash -> )
- #rendezvous : RendezvousHash
- #uri : URI