![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
redis-clustr
Advanced tools
Readme
This module is a relatively thin wrapper around the node redis client to enable use of Redis Cluster. It tries to be as unobtrusive as possible - mimicing the behaviour of the node_redis client.
var RedisCluster = require('redis-clustr');
var redis = new RedisCluster({
servers: [
{
host: '127.0.0.1',
port: 7000
}
]
});
redis.set('key', 'value');
Servers in the cluster will be automatically connected to (via the response of cluster slots
). Of course, to allow discovery there must be at least one server specified in the configuration.
By default, clients will be created using Redis.createClient(port, host)
. This can be overridden by providing a function which must return a node_redis client. Clients are cached so only one connection will be made to each server.
var RedisCluster = require('redis-clustr');
var RedisClient = require('redis');
var redis = new RedisCluster({
servers: [...],
createClient: function(port, host) {
// this is the default behaviour
return RedisClient.createClient(port, host);
}
});
Supported - when a response is given with a MOVED
error, we will immediately re-issue the command on the other server and run another cluster slots
to get the new slot allocations. ASK
redirection is also supported - we wil re-issue the command without updating the slots.
Multi commands are supported but treated as a batch of commands (not an actual multi) and the response is recreated in the original order.
del
, mget
)Multi-key commands are also supported and will split into individual commands then have the response recreated as an array. This means that del
will get a response of [ 1, 1 ]
when deleting two keys instead of 2
.
FAQs
Redis cluster client
We found that redis-clustr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.