
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Key-value based Cache taking url, params, query and session info into account.
Very simple to use. JSON is recommanded, but String can be saved too.
Before:
Requests per second: 12.98 [#/sec] (mean)
After:
Requests per second: 307.32 [#/sec] (mean)
// for ts
import { KVCache } from "vig-cache";
import * as redis from "redis";
or
// for js
const KVCache = require('vig-cache').KVCache;
const Redis = require("redis");
then
let config = {
host: '127.0.0.1',
port: 6379,
db: 0
};
let redis = Redis.createClient(config);
const cache = new KVCache(redis);
// JSON storage
await cache.setJSON(req, user, {value: 100});
await cache.getJSON(req, user);
// String storage
await cache.set(req, user, 'string');
let saved = await KVCache.get(req, user');
await cache.clear(req); // For Both JSON and String
// with Expressjs
cache.attach(app)
app.get('/', async function(req, res) {
if (req.cache.data) {
return res.send(req.cache.data.text)
}
await req.cache.setJSON(req, user, {text: 'toBeCached'});
res.send('toBeCached');
});
FAQs
vig-cache
We found that vig-cache 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.