class RendezvousHash

Defined in:

rendezvous-hash.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def [](key) #

[View source]
def []?(key) #

[View source]
def add(node : String) : Array(String) #

[View source]
def find(key : String) : String #

[View source]
def find?(key : String) : String | Nil #

[View source]
def hash_function : Proc(String, UInt64) #

[View source]
def nodes : Array(String) #

[View source]
def nodes=(nodes : Array(String)) #

[View source]
def remove(node : String) : String #

[View source]
def remove?(node : String) : String | Nil #

[View source]