
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Memcache system for node js. ncache allows servers to store in memory data using the key value pattern, this elements will be in memory until they expire.
Install it in your node server using npm install ncache - https://npmjs.org/package/ncache
### set(key, value, seconds) Stores in the cache the value using the key as index (if the key exists it will overrite it). The entry will expire based on the number of seconds it receiveUsage:
var Cache = require("ncache");
var foo = {
id: 10,
name, "FOO"
};
Cache.set(foo.id, foo, 25); /* foo will be in memcache for 25 seconds, and we will acces it with its id*/
### set(key)
Returns the value stored with the key if exists, if not it will return null
Usage:
var Cache = require("ncache");
var foo = {
id: 10,
name, "FOO"
};
Cache.set(foo.id, foo, 25);
Cache.get(10); /* Returns {id:10, name: "foo"} if the countdown hasn't finished, else null */
### remove(key)
Removes from the cache, if the element was in cache it will return true, if it wasn't false
Usage:
var Cache = require("ncache");
var foo = {
id = 10;
name = "FOO"
};
Cache.set(foo.id, foo, 25);
Cache.remove(10); /* Returns true if it is still in cache, if it isn't false */
Cache.get(10); /* Returns null */
FAQs
Memcache system for node js
The npm package ncache receives a total of 4 weekly downloads. As such, ncache popularity was classified as not popular.
We found that ncache 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.