View Source jhn_chash (jhn_stdlib v5.3.2)

Consistent hashing

Jump consistent hashing based on: A Fast, Minimal Memory, Consistent Hash Algorithm by John Lamping and Eric Veach

Summary

Functions

Given a integer key and the number of buckets it select a bucket.

Functions

-spec jump(integer(), integer()) -> integer().

Given a integer key and the number of buckets it select a bucket.