
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-notifier
Advanced tools

Subscribe To Redis Keyspaced Events (v2.8.x) Using Redis' Newly Released Keyspaced Events Feature You can now subscribe to events that the server emits Depending on the subscription mode you subscribe with when starting the Redis Server.
--notify-keyspace-events <options>
Using NPM + Package.json, simply just run npm install
If you are using node_redis pre v0.11.0 checkout the tag v0.1.2
Start Redis Server : redis-server CONF --notify-keyspace-events KExe
var redis = require('redis');
var RedisNotifier = require('redis-notifier');
var eventNotifier = new RedisNotifier(redis, {
redis : { host : '127.0.0.1', port : 6379 },
expired : true,
evicted : true,
logLevel : 'DEBUG' //Defaults To INFO
});
//Listen for event emission
eventNotifier.on('message', function(pattern, channelPattern, emittedKey) {
var channel = this.parseMessageChannel(channelPattern);
switch(channel.key) {
case 'expired':
this._handleExpired(emittedKey);
break;
case "evicted":
this._handleEvicted(emittedKey);
break;
default:
logger.debug("Unrecognized Channel Type:" + channel.type);
}
});
In lieu of a formal style-guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.
Licensed under the Apache 2.0 license.
Chris Miller
FAQs
Redis Keyspace Event Notifier
The npm package redis-notifier receives a total of 1 weekly downloads. As such, redis-notifier popularity was classified as not popular.
We found that redis-notifier 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
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.