Struct hash_ring::HashRing [] [src]

pub struct HashRing<T> { /* fields omitted */ }

HashRing

Methods

impl<T: ToString + Clone> HashRing<T>
[src]

[src]

Creates a new hash ring with the specified nodes. Replicas is the number of virtual nodes each node has to make a better distribution.

[src]

Adds a node to the hash ring

[src]

Deletes a node from the hash ring

[src]

Gets the node a specific key belongs to