We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c77d794 commit 4205cf0Copy full SHA for 4205cf0
rm.js
@@ -2,21 +2,25 @@
2
3
const Promise = require('bluebird')
4
5
-const rmContent = require('./lib/content/rm')
6
const index = require('./lib/entry-index')
+const memo = require('./lib/memoization')
7
const rimraf = Promise.promisify(require('rimraf'))
8
+const rmContent = require('./lib/content/rm')
9
10
module.exports.all = all
11
function all (cache) {
12
+ memo.clearMemoized()
13
return rimraf(cache)
14
}
15
16
module.exports.entry = entry
17
function entry (cache, key) {
18
19
return index.delete(cache, key)
20
21
22
module.exports.content = content
23
function content (cache, address) {
24
25
return rmContent(cache, address)
26
0 commit comments