Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
@consenlabs-fe/memory-cache
Advanced tools
key-value pair cache tool.
class
polyfill from Babel or core-jsnpm i @consenlabs-fe/memory-cache
.import MemoryCache from '@consenlabs-fe/memory-cache'
const MemoryCache require('@consenlabs-fe/memory-cache')
1. Get and Set
const cache = new MemoryCache('my-caches')
cache.setItem('name', 'witt')
cache.getItem('name') // -> 'witt'
2. Remove and Clean
const cache = new MemoryCache('my-caches')
cache.setItem('name', 'witt')
cache.setItem('location', 'china')
cache.removeItem('name')
cache.getItem('name') // -> null
cache.getItem('location') // -> 'china'
cache.cleanAll()
cache.getItem('location') // -> null
3. Expiration
const cache = new MemoryCache('my-caches', { maxAge: 100 })
cache.setItem('name', 'witt')
cache.getItem('name') // -> 'witt'
setTimeout(() => {
cache.getItem('name') // -> null
}, 200)
FAQs
key-value pair cache tool.
The npm package @consenlabs-fe/memory-cache receives a total of 12 weekly downloads. As such, @consenlabs-fe/memory-cache popularity was classified as not popular.
We found that @consenlabs-fe/memory-cache demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.