Sha256: 5755fdac2696e1597f7870c8e2557fc1dd2b8a6399714d39f6fedd8fdefadd5e

Contents?: true

Size: 661 Bytes

Versions: 44

Compression:

Stored size: 661 Bytes

Contents

'use strict'

const BB = require('bluebird')

const index = require('./lib/entry-index')
const memo = require('./lib/memoization')
const path = require('path')
const rimraf = BB.promisify(require('rimraf'))
const rmContent = require('./lib/content/rm')

module.exports = entry
module.exports.entry = entry
function entry (cache, key) {
  memo.clearMemoized()
  return index.delete(cache, key)
}

module.exports.content = content
function content (cache, integrity) {
  memo.clearMemoized()
  return rmContent(cache, integrity)
}

module.exports.all = all
function all (cache) {
  memo.clearMemoized()
  return rimraf(path.join(cache, '*(content-*|index-*)'))
}

Version data entries

44 entries across 34 versions & 12 rubygems

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