
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
simple-cache-object
Advanced tools
const { SimpleCache } = require('simple-cache');
const cache = new SimpleCache({ age: 60 * 1000 }); // 1 minute cache
cache.set('test1', 123);
cache.set('test2', {
a: 3,
b: 4
})
cache.set('test3', 'fdfd');
cache.get('test1'); // 123
cache.get('test2'); // { a: 3, b: 4 }
cahce.get('test3'); // 'fdfd'
// after 80 sec
setTimeout(() => {
// values expired
cache.get('test1'); // undefined
cache.get('test2'); // undefined
cahce.get('test3'); // undefined
}, 80 * 1000);
age Max age in ms. By default InfinityFAQs
simple cache get/set object for a node app and browser
The npm package simple-cache-object receives a total of 6 weekly downloads. As such, simple-cache-object popularity was classified as not popular.
We found that simple-cache-object 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
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.