consistent-rs 0.1.1

Consistent hash package for Rust
Documentation
  • Coverage
  • 66.67%
    2 out of 3 items documented0 out of 0 items with examples
  • Size
  • Source code size: 11.18 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.46 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • DavidCai1111/consistent
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • DavidCai1993

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