rendezvous-hash
Version, currently 0.2.14 versions
- 0.3.1latestJan 31, 2020
- 0.2.2not indexedJan 31, 2020
- 0.2.1not indexedJan 31, 2020
- 0.2.0not indexedJan 31, 2020
github.com/caspiano/rendezvous-hash
Rendezvous hashing for crystal
Nothing has been indexed for 0.2.1 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
rendezvous-hash:
github: caspiano/rendezvous-hash
version: ~> 0.2.1Then run:
shards installshard.yml
No shard.yml has been indexed for 0.2.1. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
rendezvous-hash
Rendezvous hashing for crystal that utilises the murmur3 hashing algorithm.
Installation
-
Add the dependency to your
shard.yml:dependencies: rendezvous-hash: github: caspiano/rendezvous-hash -
Run
shards install
Usage
require "rendezvous-hash"
hash = RendezvousHash.new(nodes: ["node1", "node2", "node3"])
hash.find("device1") # => "node3"
hash.remove("node3") # => "node3"
hash.nodes # => ["node1", "node2"]
hash.find("device1") # => "node1"
hash.remove?("node3") # => nil
hash.add("node3") # => ["node1", "node2", "node3"]
hash.find("device1") # => "node3"
hash["device1"] # => "node3"
Credit
Todo
- Benchmarking
- murmur3 seeding
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Caspian Baska - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.2.1- Tagged
- Jan 31, 2020
- Commit
3d3dad2ac476- Indexed
- not yet
Dependents
Repository
github.com/caspiano/rendezvous-hash
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 14, 2026
- Synced
- Aug 14, 2026
- Versions
- 4