ExHashRing.Hash (ex_hash_ring v6.0.1) View Source

Hash encapsulates the hashing logic for converting keys into ring locations.

Any term that implements the String.Char protocol can be used as a key.

Link to this section Summary

Types

Any term that can be coerced into a string (String.Chars.t()) is a hashable term.

t()

Hash for the term, this is used to locate Nodes in the Ring

Functions

Calculate a hash of the hashable term.

Link to this section Types

Specs

hashable() :: String.Chars.t()

Any term that can be coerced into a string (String.Chars.t()) is a hashable term.

Specs

t() :: integer()

Hash for the term, this is used to locate Nodes in the Ring

Link to this section Functions

Specs

of(hashable()) :: t()

Calculate a hash of the hashable term.