
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Extension for nodejs redis client library with support for failover with sentinels
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Redis-ext extends nodejs redis client with failover support via Redis Sentinels.
It also provides basic job queue implementation.
This module is being used in production environment for several months now.
npm install redis-ext
Create Sentinel aware connection:
var redis = require('redis-ext')
, _sentinels = [
{host: "localhost", port: 26379},
{host: "localhost", port: 26380}
]
/* possible options:
* retry_delay - minimum delay before attempting to reconnect, delay will grow up to retry_max_delay if provided
* retry_max_delay - maximum delay between reconnection attempts
* connect_timeout - if specified, retries will stop after total time for reconnecting exceeds this number
*/
, _options = { retry_max_delay: 10000 }
, client = redis.createWithSentinel(_sentinels, "mastername", _options);
Create receiving job client:
var queue = redis.createQueue(function () {
return redis.createWithSentinel(_sentinels, "queues", _options);
}, key, workerFn);
queue.connect(); // start receiving jobs
Create job queue:
var queue = redis.createQueue(function () {
return redis.createWithSentinel(_sentinels, "queues", _options);
}, key);
queue.send(jobdescription);
Laura Doktorova @olado
redis-ext is licensed under the MIT License
FAQs
Extension for nodejs redis client library with support for failover with sentinels
The npm package redis-ext receives a total of 0 weekly downloads. As such, redis-ext popularity was classified as not popular.
We found that redis-ext demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.