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.
A simple Redis Cache using node-redis
var Cache = require('cacheit');
var cache = new Cache();
key
- stringvalue
- string or hash object (must be flat)ttl
- time to live in mcallback
An alias for cache.set. This is just for symmetry with cache.getHash.
key
- string
Returns the string value or 'undefined' if the key is not found.
key
- string
Returns the entire hash object using the redis 'HGETALL' command.
key
- string
Deletes the key using the redis 'DEL' command.
Returns the total number of keys currently cached
cache.client
- access the raw redis clientcache.hits
cache.misses
cache.errors
cache.default_ttl
cache.connects
cache.disconnects
cache.connected
Ensure you have a local version of redis running.
Install mocha
npm install mocha
Run tests
cd test
mocha test.js --reporter spec
FAQs
A simple Redis cache
The npm package cacheit receives a total of 12 weekly downloads. As such, cacheit popularity was classified as not popular.
We found that cacheit 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
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.