class

RendezvousHash

Inherits Reference < Object

Constructors

new(nodes : Array(String) = [] of String, hash_function : String -> UInt64 = ->Murmur3.h1(String))
Source

Instance methods

[](key)
Source
[]?(key)
Source
add(node : String) : Array(String)
Source
find(key : String) : String
Source
find?(key : String) : String | Nil
Source
hash_function
Source
nodes
Source
nodes=(nodes : Array(String))
Source
remove(node : String) : String
Source
remove?(node : String) : String | Nil
Source