@file-cache/core
Version:
A cache for file metadata or file content.
28 lines (26 loc) • 558 B
JavaScript
;
const createNoCache = () => {
return {
async clear() {
return;
},
// eslint-disable-next-line @typescript-eslint/no-unused-vars
async delete(_filePath) {
return true;
},
// eslint-disable-next-line @typescript-eslint/no-unused-vars
async getAndUpdateCache(_filePath) {
return {
changed: true
};
},
async reconcile() {
return true;
},
async try(cb) {
return cb();
}
};
};
exports.createNoCache = createNoCache;
//# sourceMappingURL=noCache.cjs.map