package grenier

  1. Overview
  2. Docs

An implementation of "A Fast, Minimal Memory, Consistent Hash Algorithm"

val host : hosts:int -> int64 -> int

host ~hosts key tells you on which host, between 0 and hosts-1, you should store value indexed by key.