✏️ 编辑:cacheWrapper.js
路径:
/home/boguraj1/public_html/jobsite/node_modules/cosmiconfig/dist/cacheWrapper.js
大小:612 B · 修改:2022-11-21 20:08:10 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.cacheWrapper = cacheWrapper; exports.cacheWrapperSync = cacheWrapperSync; async function cacheWrapper(cache, key, fn) { const cached = cache.get(key); if (cached !== undefined) { return cached; } const result = await fn(); cache.set(key, result); return result; } function cacheWrapperSync(cache, key, fn) { const cached = cache.get(key); if (cached !== undefined) { return cached; } const result = fn(); cache.set(key, result); return result; } //# sourceMappingURL=cacheWrapper.js.map
💾 保存
取消
保存为 UTF-8,换行统一为 LF