consistent-rs

Crates.ioconsistent-rs
lib.rsconsistent-rs
version0.1.1
sourcesrc
created_at2017-06-17 02:39:19.825258
updated_at2017-06-17 02:44:19.360152
descriptionConsistent hash package for Rust
homepagehttps://github.com/DavidCai1993/consistent
repositoryhttps://github.com/DavidCai1993/consistent
max_upload_size
id19265
size11,108
David Cai (DavidCai1993)

documentation

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

README

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"));
Commit count: 12

cargo fmt