Struct conhash::conhash::ConsistentHash [] [src]

pub struct ConsistentHash<N: Node> { /* fields omitted */ }

Consistent Hash

Methods

impl<N: Node> ConsistentHash<N>
[src]

[src]

Construct with default hash function (Md5)

[src]

Construct with customized hash function

[src]

Add a new node

[src]

Get a node by key. Return None if no valid node inside

[src]

Get a node by string key

[src]

Get a node by key. Return None if no valid node inside

[src]

Get a node by string key

[src]

Remove a node with all replicas (virtual nodes)

[src]

Number of nodes