/
lostSun
/
project-client-server-apps
Обзор
Документация
Войти
/
lostSun
/
project-client-server-apps
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
project-client-server-apps
/
...
/
node_modules
/
cacache
/
..
lib
update project
год назад
LICENSE.md
update project
год назад
README.md
update project
год назад
get.js
update project
год назад
index.js
update project
год назад
ls.js
update project
год назад
package.json
update project
год назад
put.js
update project
год назад
rm.js
update project
год назад
verify.js
update project
год назад
cacache
Install
Table of Contents
Example
Features
Contributing
API
`> cacache.ls(cache) -> Promise`
Example
`> cacache.ls.stream(cache) -> Readable`
Example
`> cacache.get(cache, key, [opts]) -> Promise({data, metadata, integrity})`
Note
Example
`> cacache.get.stream(cache, key, [opts]) -> Readable`
Example
`> cacache.get.info(cache, key) -> Promise`
Fields
Example
`> cacache.get.hasContent(cache, integrity) -> Promise`
Example
Options
`opts.integrity`
`opts.memoize`
`opts.size`
`> cacache.put(cache, key, data, [opts]) -> Promise`
Example
`> cacache.put.stream(cache, key, [opts]) -> Writable`
Example
Options
`opts.metadata`
`opts.size`
`opts.integrity`
`opts.algorithms`
`opts.memoize`
`opts.tmpPrefix`
`> cacache.rm.all(cache) -> Promise`
Example
`> cacache.rm.entry(cache, key, [opts]) -> Promise`
Example
`> cacache.rm.content(cache, integrity) -> Promise`
Example
`> cacache.index.compact(cache, key, matchFn, [opts]) -> Promise`
`> cacache.index.insert(cache, key, integrity, opts) -> Promise`
`> cacache.clearMemoized()`
`> tmp.mkdir(cache, opts) -> Promise`
Example
`> tmp.fix(cache) -> Promise`
Example
`> tmp.withTmp(cache, opts, cb) -> Promise`
Example
Options
`opts.tmpPrefix`
Subresource Integrity Digests
Generating Digests Yourself
`> cacache.verify(cache, opts) -> Promise`
Options
`opts.concurrency`
`opts.filter`
`opts.log`
Example
`> cacache.verify.lastRun(cache) -> Promise`
Example
README.md