cacache
cacache copied to clipboard
npm's content-addressable cache
I've been looking for solid, stable and well maintained Node.js file caching libraries. (Un)Fortunately, cacache was the only one that I could find. Now, having general experience with remote caching,...
### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior NpmCache::getCacheDbItems failed due to TypeError: buckets.map is not a function at...
### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior my npmrc file contains ``` prefix=${XDG_DATA_HOME}/node cache=${XDG_CACHE_HOME}/npm init-module=${XDG_CONFIG_HOME}/npm/config/npm-init.js ``` cacache ignores...
### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior Calling ls.stream over a large store results large memory hit for...
# What / Why Apparently `put.stream()` with integrity checks leaves the cache in an inconsistent state, and all keys inserted with this procedure are purged by the next `verify()`. I...
# What / Why In order to safely prune old content after storing fresh content in the cache, we need some means of knowing if the old content has now...
Fixes #25 Unfortunately I can't test on the latest npm due to npm/cli#2160 :(
Hi ,@nlf , @isaacs, I’d like to report a vulnerability issue in **_cacache_**: ### Issue Description A vulnerability [**CVE-2021-27290**](https://snyk.io/vuln/SNYK-JS-GLOBPARENT-1016905) (high severity) detected in package **ssri (>=5.2.2 =7.0.0
# What / Why Documentation says about property time: Timestamp the entry was first added on. Running `cacache.verify()` internally uses `insert()` method and sets time property to `Date.now()`. This is...
# What / Why > Running example failed ``` fetch( 'https://registry.npmjs.org/cacache/-/cacache-1.0.0.tgz' ).then(data => { return cacache.put(cachePath, 'registry.npmjs.org|[email protected]', data) }).then(integrity => { console.log('integrity hash is', integrity) }) ``` (node:443) UnhandledPromiseRejectionWarning: TypeError:...