
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-list-objects
Advanced tools
store and query json objects in redis lists
install package itself with:
npm install redis-object-store
module also depends on redis:
npm install redis
you maybe want to use hiredis too:
npm install hiredis
// examples/example-1.js
var RedisObjectStore = require ('redis-object-store'),
redis = require ('redis');
var redisClient = redis.createClient ();
var store = new RedisObjectStore ('test', redisClient);
var doc = {
foo: 'foo',
bar: 1
};
store.insert (doc, function (err) {
store.query ({
foo: 'foo'
}, function (err, result) {
console.log (result); // -> [{foo:"foo",bar:1}]
});
});
where options follows the schema:
options = {
blockSize: 100,
serialize: function (object) {
return JSON.stringify (object);
},
parse: function (string) {
return JSON.parse (string);
}
}
documents may be single object as well as array of objects
mongodbQuery is parsed by sift
module store inserted objects in redis list as follow:
this.redis.rpush (this.name, this.serialize(document))
module fetches documents from redis as follow:
this.redis.lrange (this.name, 0, length, function (err, result) {
var parsedResults = [],
sifted = sift (mongodbQuery);
results.forEach (function(data){
parsedResults.push (this.parse(data));
});
callback (err, sifted(parsedResults));
});
FAQs
store and query json objects in redis lists
We found that redis-list-objects 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.