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
enju_library-0.3.8 spec/dummy/node_modules/webpack/node_modules/cacache/rm.js
ilog-0.4.1 node_modules/cacache/rm.js
ilog-0.4.0 node_modules/cacache/rm.js
ilog-0.3.3 node_modules/cacache/rm.js
jester-data-8.0.0 node_modules/terser-webpack-plugin/node_modules/cacache/rm.js
jester-data-8.0.0 node_modules/cacache/rm.js
ezii-os-5.2.1 node_modules/cacache/rm.js
ezii-os-5.2.1 node_modules/terser-webpack-plugin/node_modules/cacache/rm.js
ezii-os-2.0.1 node_modules/terser-webpack-plugin/node_modules/cacache/rm.js
ezii-os-2.0.1 node_modules/cacache/rm.js
ezii-os-1.1.0 node_modules/cacache/rm.js
ezii-os-1.1.0 node_modules/terser-webpack-plugin/node_modules/cacache/rm.js
ezii-os-1.0.0 node_modules/terser-webpack-plugin/node_modules/cacache/rm.js
ezii-os-1.0.0 node_modules/cacache/rm.js
ezii-os-0.0.0.1.0 node_modules/cacache/rm.js
ezii-os-0.0.0.1.0 node_modules/terser-webpack-plugin/node_modules/cacache/rm.js
ezii-os-0.0.0.0.1 node_modules/terser-webpack-plugin/node_modules/cacache/rm.js
ezii-os-0.0.0.0.1 node_modules/cacache/rm.js
optimacms-0.4.3 spec/dummy/node_modules/cacache/rm.js
optimacms-0.4.2 spec/dummy/node_modules/cacache/rm.js