
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
redis-hashring
Advanced tools
This project allows you to create an Redis cluster. It uses the key passed on parameters to generate a hash to decide in which instance it should read or write the data
This project allows you to create an Redis cluster used for caching purposes. It uses the key passed on parameters to generate a hash to decide in which instance it should read or write the data.
This project works best for very large applications with tons of small cache keys. It is basicaly a tool to shard values into many redis machines dividing load. It is not intended for applications that require huge reads of a small ammount of keys since that would put strain into a single machine.
It does have support for disaster recovery, if a machine is considered down redis-hashring will remove it from the ring and send the keys to other machines until that machine is back on again granting some safety for high availability.
Quick example using two Redis instances:
var RedisHashring = require("../lib/redis_hashring");
var redisHashring = new RedisHashring();
redisHashring.initialize(["localhost", "localhost:7777"]);
redisHashring.ready(function() {
var key = "somekey",
key2 = "otherkey";
redisHashring.set(key, "Value", function(err, val) {
redisHashring.get(key, function(err, val) {
console.log(err, val);
})
});
redisHashring.set(key2, "Value2", function(err, val) {
redisHashring.get(key2, function(err, val) {
console.log(err, val);
})
});
});
FAQs
This project allows you to create an Redis cluster. It uses the key passed on parameters to generate a hash to decide in which instance it should read or write the data
The npm package redis-hashring receives a total of 4 weekly downloads. As such, redis-hashring popularity was classified as not popular.
We found that redis-hashring demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.