Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Simple cache config handling for your app or module
If you don't need caching, you should use conf instead. This module extends that module and abstracts away the caching mechanism.
$ npm install --save cache-conf
const delay = require('delay');
const CacheConf = require('cache-conf');
const config = new CacheConf();
config.set('unicorn', '🦄', {maxAge: 5000});
console.log(config.get('unicorn'));
//=> '🦄'
// Wait 5 seconds
await delay(5000);
console.log(config.get('unicorn'));
//=> undefined
Returns a new instance.
Any of the conf options.
An extended conf instance.
Set an item.
Set multiple items at once.
Type: number
Number of milliseconds the cached value is valid.
Type: string
Version number of the data. If the version provided is not the same as the version of the cached data, the data will be invalid.
Boolean indicating if the cached data is expired.
MIT © Sam Verschueren
FAQs
Simple cache config handling for your app or module
We found that cache-conf demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.