2 releases

Uses old Rust 2015

0.1.1 Jun 17, 2017
0.1.0 Jun 17, 2017

#12 in #hash-ring

MIT license

10KB
211 lines

consistent

Build Status

Consistent hash package for Rust.

Installation

[dependencies]
consistent_rs = "0.1.1"

Documentation

See: https://docs.rs/consistent-rs/0.1.1/consistent_rs/

Example

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"));

lib.rs:

Consistent hash package for Rust.

Dependencies

~77KB