Security News
Combatting Alert Fatigue by Prioritizing Malicious Intent
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
cache-point
Advanced tools
Example
const Cache = require('cache-point')
const cache = new Cache({ cacheDir: '~/.cache' })
string
Promise
Promise
string
Promise
Promise
Param | Type |
---|---|
[options] | object |
[options.cacheDir] | string |
string
Cache directory
Kind: instance property of Cache
Promise
Cache hit resolves, miss rejects.
Kind: instance method of Cache
Param | Type | Description |
---|---|---|
keys | * | One or more values to index the data, e.g. a request object or set of function args. |
Promise
Write some data to the cache with a key.
Kind: instance method of Cache
Param | Type | Description |
---|---|---|
keys | * | One or more values to index the data, e.g. a request object or set of function args. |
content | * | the data to store |
string
Converts a key value into a hex checksum.
Kind: instance method of Cache
Param | Type | Description |
---|---|---|
keys | * | One or more values to index the data, e.g. a request object or set of function args. |
Promise
Cleans the cache.
Kind: instance method of Cache
Promise
Cleans and removes the cache.
Kind: instance method of Cache
© 2016 Lloyd Brookes <75pound@gmail.com>. Documented by jsdoc-to-markdown.
FAQs
Simple, filesystem-backed memoisation cache.
The npm package cache-point receives a total of 118,580 weekly downloads. As such, cache-point popularity was classified as popular.
We found that cache-point demonstrated a healthy version release cadence and project activity because the last version was released less than 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
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.