Buckets:
| ; | |
| 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 |
Xet Storage Details
- Size:
- 612 Bytes
- Xet hash:
- 227426f52b4aa9e8c4d22122454d414aeca1efcec13e25ef9fce59336c07f42c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.