ketama-hash-ring 11.1.0

Zero-dependency consistent hashing suite implementing Jump Consistent Hash, weighted Ketama virtual-node rings, and Google Maglev O(1) lookup tables.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! ketama-hash-ring
//!
//! Zero-dependency consistent hashing suite providing Jump Consistent Hash,
//! weighted Ketama virtual-node rings, and Google Maglev O(1) lookup tables.

mod hash;
mod maglev;
mod ring;

pub use {hash::*, maglev::*, ring::*};

use std::{
    collections::{HashSet, hash_map::DefaultHasher},
    hash::{Hash, Hasher},
};