Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
redis-async-wrapper
Advanced tools
Redis keys async wrapper
npm install --save redis-async-wrapper
Only a part of redis commands added in this wrapper till now.
const dal = require('redis-async-wrapper')
// init with options
dal.init({url: "redis://host:port", keyPrefix: "app"})
// define keys conventions
const Templates = {
user: "user:%s:%s" // user:userId:type
}
// define model
const User = new dal.Redis_Hash({tpl:Templates.user})
User.save = async (id, type, infoObject) => {
await User.hmset([id, type], infoObject)
const user = await User.hgetall([id, type])
console.log(`user ${user.name} is saved`)
}
User.save(1, 1, {name: "stefan"})
Glad to get contributors to this library, contact me at stefanliu@outlook.com !
FAQs
redis data layer async wrapper
The npm package redis-async-wrapper receives a total of 2 weekly downloads. As such, redis-async-wrapper popularity was classified as not popular.
We found that redis-async-wrapper 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.