{"_id":"hash_ring","_rev":"17-b29f8814a29a27ef0c7b39c8c61f3efb","name":"hash_ring","description":"Consistent hashing C++ Add-on for node.js","dist-tags":{"latest":"0.2.1"},"versions":{"0.1.0":{"name":"hash_ring","version":"0.1.0","description":"Consistent hashing C++ Add-on for node.js","keywords":["node","hash ring","sharding","distributed"],"author":{"name":"Brian Noguchi","email":"brian.noguchi@gmail.com"},"contributors":[{"name":"Brian Noguchi","web":"http://ngchi.wordpress.com"}],"licenses":["MIT"],"main":"./index","repository":{"type":"git","url":"https://github.com/bnoguchi/node-hash-ring"},"bugs":{"web":"http://github.com/bnoguchi/redis-node/issues"},"engines":{"node":">=0.2.0"},"scripts":{"install":"cd src; node-waf configure build"},"_id":"hash_ring@0.1.0","_nodeSupported":true,"_npmVersion":"0.2.8-1","_nodeVersion":"v0.2.5","dist":{"tarball":"https://registry.npmjs.org/hash_ring/-/hash_ring-0.1.0.tgz","shasum":"ebc7db1d254366e4343fcccf0ceb6e07c4bf6f27","integrity":"sha512-IiC8uWiewkMCMeqXR4z9gTZwIXBu8IM7Fpekk2bAnyEPNYXhbC1rwlf/9rUPza7nIPkz85+8bBqpkLfbhus4Xw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG0WloLk4gMlW1onhbonHfXeqIC1GU+g84UiFWG+AQtSAiEA+nmz5MaKe5BNDWk4hhEI+6KCfwFLydHIadImszwZHJk="}]},"directories":{}},"0.2.0":{"name":"hash_ring","version":"0.2.0","description":"Consistent hashing C++ Add-on for node.js","keywords":["node","hash ring","consistent hashing","sharding","distributed"],"author":{"name":"Brian Noguchi","email":"brian.noguchi@gmail.com"},"contributors":[{"name":"Brian Noguchi","url":"http://ngchi.wordpress.com"}],"licenses":["MIT"],"main":"./index.js","repository":{"type":"git","url":"git://github.com/bnoguchi/node-hash-ring.git"},"devDependencies":{"expresso":">=0.7.6","should":">=0.2.0"},"bugs":{"url":"https://github.com/bnoguchi/node-hash-ring/issues"},"engines":{"node":">=0.4.x"},"scripts":{"preinstall":"node-waf clean || true; node-waf configure build"},"dependencies":{},"_id":"hash_ring@0.2.0","_engineSupported":true,"_npmVersion":"1.0.3","_nodeVersion":"v0.4.7","_defaultsLoaded":true,"dist":{"shasum":"772b5da8478bbfd533d835f19138bb68e4b8468e","bin":{"0.4-ares1.7.4-ev4.4-openssl0.9.8k-v83.1.8.3-linux-2.6.32-31-generic":{"shasum":"33361ab78cab2e8b7f482e0ac7e1e957c08b831f","tarball":"http://registry.npmjs.org/hash_ring/-/hash_ring-0.2.0-0.4-ares1.7.4-ev4.4-openssl0.9.8k-v83.1.8.3-linux-2.6.32-31-generic.tgz"}},"tarball":"https://registry.npmjs.org/hash_ring/-/hash_ring-0.2.0.tgz","integrity":"sha512-1dwtMYTa0/ZakmakPi329RoIIVDjkTS/RXMmAIuenmDJFSA9eYLl6zxFQG+xZo2MEBfCo9N6hm+oQXGYH6Cxhw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB1Rvc0amRGc6yRBtSrNcSF98mv/CBjiI3ewGxxFvJqsAiEA4SXufdtuU0hJf1RRQOb4MeJjjjG9aKKKgktHrkSPwbk="}]}},"0.2.1":{"name":"hash_ring","version":"0.2.1","description":"Consistent hashing C++ Add-on for node.js","keywords":["node","hash ring","consistent hashing","sharding","distributed"],"author":{"name":"Brian Noguchi","email":"brian.noguchi@gmail.com"},"contributors":[{"name":"Brian Noguchi","url":"http://ngchi.wordpress.com"}],"licenses":["MIT"],"main":"./index.js","repository":{"type":"git","url":"git://github.com/bnoguchi/node-hash-ring.git"},"devDependencies":{"expresso":">=0.7.6","should":">=0.2.0"},"bugs":{"url":"https://github.com/bnoguchi/node-hash-ring/issues"},"engines":{"node":">=0.6.x"},"_npmUser":{"name":"bnoguchi","email":"brian.noguchi@gmail.com"},"_id":"hash_ring@0.2.1","scripts":{"preinstall":"node-waf clean || (exit 0); node-waf configure build"},"dependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-beta-4","_nodeVersion":"v0.6.6","_defaultsLoaded":true,"dist":{"shasum":"afb00efaa52d971447909e8ef97d184c7e2ad0ae","tarball":"https://registry.npmjs.org/hash_ring/-/hash_ring-0.2.1.tgz","integrity":"sha512-E7bh9k/0X9Ew78iFxLN6iiyVFxesKrbdUaHW+W0I7fGyPJBv0env4CxvE1Xp4C1r4vN7A7zWMSqxY5VBT8IQmg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCctTCLVuawj6AqKnCTcs3XeonFc3SegL7NdDBh0VTyRgIgaj2nMUAUMPaqxe64y6ryyzmsaAd8xTNXm5omFGYAqtM="}]},"readme":"## node-hash-ring - Consistent Hashing C++ Add-on for node.js\n---\n\nSee this [blog post](http://ngchi.wordpress.com/2010/08/23/towards-auto-sharding-in-your-node-js-app/) for more information.\n\n### Installation\nVia npm:\n\n    npm install hash_ring\n\nVia git:\n\n    git clone http://github.com/bnoguchi/node-hash-ring.git\n    cd node-hash-ring/src\n    node-waf configure build\n\n### Example\n\n```javascript\nvar HashRing = require(\"./lib/hash_ring\");\n\n// Create a cluster of 3 servers weighted so that 127.0.0.2:8080 stores twice as many \n// keys as 127.0.0.1:8080, and 127.0.0.3:8080 stores 4x as many keys as 127.0.0.1:8080\n// and 2x as many keys as 127.0.0.2:8080\nvar ring = new HashRing({\"127.0.0.1:8080\": 1, \"127.0.0.2:8080\": 2, \"127.0.0.3:8080\":4});\nconsole.log(ring.getNode(\"users:102\") ); // Should be 127.0.0.3:8080\n```\n\nSee [./test/test_distribution.js](https://github.com/bnoguchi/node-hash-ring/test/test_distribution.js) for another example:\n    node test/test_distribution.js\n\n### Tests\n\nTo run the tests:\n\n    $ make test\n\n### License\nMIT License\n\n---\n### Author\nBrian Noguchi\n","maintainers":[{"name":"bnoguchi","email":"brian.noguchi@gmail.com"}]}},"maintainers":[{"name":"bnoguchi","email":"brian.noguchi@gmail.com"}],"author":{"name":"Brian Noguchi","email":"brian.noguchi@gmail.com"},"repository":{"type":"git","url":"git://github.com/bnoguchi/node-hash-ring.git"},"time":{"modified":"2022-06-18T19:29:07.191Z","created":"2011-04-26T01:09:26.528Z","0.1.0":"2011-04-26T01:09:26.528Z","0.2.0":"2011-04-26T01:09:26.528Z","0.2.1":"2012-02-02T04:34:16.887Z"}}