
Research
Security News
The Landscape of Malicious Open Source Packages: 2025 Mid‑Year Threat Report
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
pd-redis-record
Advanced tools
A redis and data model mapping
var Record = require('pd-redis-record');
var modelName = 'user';
var primKeys = ['id'];
var User = Record(modelName, primKeys);
User.amount().then(..);
User.listIds().then(..);
User.rangeIds({
latest: (new Date()).getTime(),
earliest: 0
limit: [0, 20]
}).then(..);
User.getByIdList(idList, {
fields : ['status', 'firstName'],
each: function(record){
//setSthTo(record);
return record;
}
}).then(...);
User.getOne('myemail@email.com', {
fields: ['status', 'firstName'] ,
withCreatedAt : true //As creation time is stored in a sorted-set which is different from the record data
//it may bring more or less performance loss
}).then(..);
User.range({
latest : ...,
earliest : ...,
limit : ...,
fields : ....
//there is no need for withCreatedAt as this function will search both
//the data hash and sorted-set index for sure
}).then(..);
User.create({
id:'johndoe@email.com',
firstName : 'John',
lastName : 'Doe'
}).then(...);
User.modify({
id:'johndoe@email.com',
firstName : 'Jane',
lastName : 'Doe'
}).then(...);
User.remove('johndoe@gmail.com').then(...);
User.checkAbsence('johndoe@gmail.com').then(function(){
//not found
}).then(function(err){
//found or error
});
User.checkPresence('johndoe@gmail.com').then(function(){
//found
}).then(function(err){
//not found or error
});
FAQs
(Abandoned) A redis and data model mapping
The npm package pd-redis-record receives a total of 1 weekly downloads. As such, pd-redis-record popularity was classified as not popular.
We found that pd-redis-record 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.
Research
Security News
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.