
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
cache-point
Advanced tools
Example
const Cache = require('cache-point')
const cache = new Cache({ dir: '~/.cache' })
string
Promise
Promise
string
Promise
Promise
Param | Type |
---|---|
[options] | object |
[options.dir] | 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 228,901 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.