ckey 0.1.1

CKey is a consistent hash key library.
Documentation

CKey

CKey is an experimental consistent hash key library, implemented in Rust.

See the theory about consistent hashing.

This library provides 256-bit keys, with some helpers. Internally, keys are stored on 4 unsigned integers of 64-bit each.

CKey icon

Status

For now this is a toy project, clearly NOT suitable for production use.

Build Status

Usage

use ckey::CKey;

let k1 = CKey::new_rand();
let k2 = k1.next();
print!("k1:{:?} k2:{:?}\n", k1, k2);

Links

License

Ckey is licensed under the MIT license.