silverwolf-x's picture
download
raw
562 Bytes
const cache = new Map()
class CacheHandler {
constructor(options) {
this.options = options
this.cache = {}
console.log('initialized custom cache-handler')
console.log('cache handler - esm default export')
}
async get(key) {
console.log('key', key)
console.log('cache-handler get', key)
return cache.get(key)
}
async set(key, data) {
console.log('set key', key)
console.log('cache-handler set', key)
cache.set(key, {
value: data,
lastModified: Date.now(),
})
}
}
export default CacheHandler

Xet Storage Details

Size:
562 Bytes
·
Xet hash:
fa134c9543ae32de3821a06f42fbb5f60ebb6bc4d3c45c0cade043a01fb0114d

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