consistent

Build Status

Consistent hash package for Rust.

Installation

toml [dependencies] consistent_rs = "0.1.0"

Documentation

See: https://docs.rs/consistentrs/0.1.0/consistentrs

Example

```rs let mut consistant = Consistant::default(); consistant.add("cacheA"); consistant.add("cacheB"); consistant.add("cacheC");

println!("david => {:?}", consistant.get("david")); println!("james => {:?}", consistant.get("james")); println!("kelly => {:?}", consistant.get("kelly")); ```