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