jumphash

Crates.iojumphash
lib.rsjumphash
version0.1.8
sourcesrc
created_at2016-11-29 00:26:27.694483
updated_at2021-11-02 17:33:15.251552
descriptionA Fast, Minimal Memory, Consistent Hash Algorithm
homepagehttps://github.com/jedisct1/rust-jumphash
repositoryhttps://github.com/jedisct1/rust-jumphash
max_upload_size
id7403
size7,303
Prime Lens (github:primulinus:prime-lens)

documentation

README

Jump Consistent Hash

A fast, minimal memory, consistent hash algorithm.

API documentation

Example

Cargo dependencies:

[dependencies]
jumphash = "~0"

Rust code:

extern crate jumphash;

let jh = jumphash::JumpHasher::new();
let slot_count = 100;
let slot_for_key = jh.slot(&"key", slot_count);
Commit count: 26

cargo fmt