silverwolf-x/project / test /e2e /app-dir /app-static /cache-handler-default-export.js
silverwolf-x's picture
download
raw
700 Bytes
Object.defineProperty(exports, '__esModule', { value: true })
const cache = new Map()
var CacheHandler = /** @class */ (function () {
function CacheHandler(options) {
this.options = options
this.cache = cache
console.log('initialized custom cache-handler')
}
CacheHandler.prototype.get = function (key) {
console.log('cache-handler get', key)
return Promise.resolve(this.cache.get(key))
}
CacheHandler.prototype.set = function (key, data) {
console.log('cache-handler set', key)
this.cache.set(key, {
value: data,
lastModified: Date.now(),
})
return Promise.resolve(undefined)
}
return CacheHandler
})()
exports.default = CacheHandler

Xet Storage Details

Size:
700 Bytes
·
Xet hash:
94fb29dac1eaaff442aea5eb502320cdbb530e397dbca09b6bccf0e4426f8103

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.