Sha256: b858fd5eb1af82bb3faee71d86f43d29081c6d060edfbe08438fcf68f38e378e

Contents?: true

Size: 1.78 KB

Versions: 35

Compression:

Stored size: 1.78 KB

Contents

'use strict'

const ls = require('../ls.js')
const get = require('../get.js')
const put = require('../put.js')
const rm = require('../rm.js')
const verify = require('../verify.js')
const setLocale = require('../lib/util/y.js').setLocale
const clearMemoized = require('../lib/memoization.js').clearMemoized
const tmp = require('../lib/util/tmp.js')

setLocale('en')

const x = module.exports

x.ls = cache => ls(cache)
x.ls.stream = cache => ls.stream(cache)

x.get = (cache, key, opts) => get(cache, key, opts)
x.get.byDigest = (cache, hash, opts) => get.byDigest(cache, hash, opts)
x.get.sync = (cache, key, opts) => get.sync(cache, key, opts)
x.get.sync.byDigest = (cache, key, opts) => get.sync.byDigest(cache, key, opts)
x.get.stream = (cache, key, opts) => get.stream(cache, key, opts)
x.get.stream.byDigest = (cache, hash, opts) => get.stream.byDigest(cache, hash, opts)
x.get.copy = (cache, key, dest, opts) => get.copy(cache, key, dest, opts)
x.get.copy.byDigest = (cache, hash, dest, opts) => get.copy.byDigest(cache, hash, dest, opts)
x.get.info = (cache, key) => get.info(cache, key)
x.get.hasContent = (cache, hash) => get.hasContent(cache, hash)
x.get.hasContent.sync = (cache, hash) => get.hasContent.sync(cache, hash)

x.put = (cache, key, data, opts) => put(cache, key, data, opts)
x.put.stream = (cache, key, opts) => put.stream(cache, key, opts)

x.rm = (cache, key) => rm.entry(cache, key)
x.rm.all = cache => rm.all(cache)
x.rm.entry = x.rm
x.rm.content = (cache, hash) => rm.content(cache, hash)

x.setLocale = lang => setLocale(lang)
x.clearMemoized = () => clearMemoized()

x.tmp = {}
x.tmp.mkdir = (cache, opts) => tmp.mkdir(cache, opts)
x.tmp.withTmp = (cache, opts, cb) => tmp.withTmp(cache, opts, cb)

x.verify = (cache, opts) => verify(cache, opts)
x.verify.lastRun = cache => verify.lastRun(cache)

Version data entries

35 entries across 25 versions & 8 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/terser-webpack-plugin/node_modules/cacache/locales/en.js
disco_app-0.18.0 test/dummy/node_modules/terser-webpack-plugin/node_modules/cacache/locales/en.js
disco_app-0.18.0 test/dummy/node_modules/cacache/locales/en.js
disco_app-0.18.2 test/dummy/node_modules/terser-webpack-plugin/node_modules/cacache/locales/en.js
disco_app-0.18.2 test/dummy/node_modules/cacache/locales/en.js
disco_app-0.16.1 test/dummy/node_modules/terser-webpack-plugin/node_modules/cacache/locales/en.js
disco_app-0.15.2 test/dummy/node_modules/terser-webpack-plugin/node_modules/cacache/locales/en.js
disco_app-0.18.4 test/dummy/node_modules/terser-webpack-plugin/node_modules/cacache/locales/en.js
disco_app-0.18.1 test/dummy/node_modules/terser-webpack-plugin/node_modules/cacache/locales/en.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/terser-webpack-plugin/node_modules/cacache/locales/en.js
disco_app-0.14.0 test/dummy/node_modules/terser-webpack-plugin/node_modules/cacache/locales/en.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/terser-webpack-plugin/node_modules/cacache/locales/en.js
tang-0.2.1 spec/tang_app/node_modules/webpack/node_modules/cacache/locales/en.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/webpack/node_modules/cacache/locales/en.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/webpack/node_modules/cacache/locales/en.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/webpack/node_modules/cacache/locales/en.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/webpack/node_modules/cacache/locales/en.js
tang-0.2.0 spec/tang_app/node_modules/webpack/node_modules/cacache/locales/en.js
tang-0.1.0 spec/tang_app/node_modules/webpack/node_modules/cacache/locales/en.js
tang-0.0.9 spec/tang_app/node_modules/webpack/node_modules/cacache/locales/en.js