Skip to content

CryptLink/ConsistentHash

Repository files navigation

CryptLink.ConsistentHash

A high performance hash collection for use in a distributed hash table

To read about the concepts of a Consistent hashing, see (https://en.wikipedia.org/wiki/Consistent_hashing)

This project relies on (https://github.com/CryptLink/SigningFramework)

License: LGPL v3 Build status NuGet

Example

    var c = new ConsistentHash<HashableString>(HashProvider.SHA384);
    var firstItem = new HashableString(Guid.NewGuid().ToString());
    firstItem.ComputeHash(c.Provider, null);

    //Adds a single item replicated 100 times
    c.Add(firstItem, true, 110);

About

A high performance hash table for use in a distributed hash table

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages