class RendezvousHash
- RendezvousHash
- Reference
- Object
Defined in:
rendezvous-hash.crConstructors
Instance Method Summary
- #[](key)
- #[]?(key)
- #add(node : String) : Array(String)
- #find(key : String) : String
- #find?(key : String) : String | Nil
- #hash_function : Proc(String, UInt64)
- #nodes : Array(String)
- #nodes=(nodes : Array(String))
- #remove(node : String) : String
- #remove?(node : String) : String | Nil
Constructor Detail
def self.new(nodes : Array(String) = [] of String, hash_function : String -> UInt64 = ->Murmur3.h1(String))
#