_cacheDelete(key) { let file = Fs.join(this.dir, hash(key)); if (!fs.existsSync(file)) return false; return fs.unlinkSync(file); }
const files = manifest.modules[hash(id)] = chunk.files.map(fileToIndex)
_cacheGet(key) { let file = Fs.join(this.dir, hash(key)); if (!fs.existsSync(file)) return false; return JSON.parse(fs.readFileSync(file)); }
_cacheSet(key, value) { let file = Fs.join(this.dir, hash(key)); if (fs.existsSync(file)) fs.unlinkSync(file); fs.appendFile(file, JSON.stringify(value), () => { }); return value; }