Sha256: ad3efa4a1587d6843e99e55683401e23f0db25e81bce31c7f1ce462e9475f7b9

Contents?: true

Size: 676 Bytes

Versions: 7

Compression:

Stored size: 676 Bytes

Contents

'use strict'

const util = require('util')

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

module.exports = entry
module.exports.entry = entry

function entry (cache, key, opts) {
  memo.clearMemoized()
  return index.delete(cache, key, opts)
}

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

7 entries across 7 versions & 1 rubygems

Version Path
disco_app-0.16.1 test/dummy/node_modules/cacache/rm.js
disco_app-0.15.2 test/dummy/node_modules/cacache/rm.js
disco_app-0.18.4 test/dummy/node_modules/cacache/rm.js
disco_app-0.18.1 test/dummy/node_modules/cacache/rm.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/cacache/rm.js
disco_app-0.14.0 test/dummy/node_modules/cacache/rm.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/cacache/rm.js