Buckets:
| const cache = new Map() | |
| module.exports = class CacheHandler { | |
| constructor(options) { | |
| this.options = options | |
| this.cache = {} | |
| console.log('initialized custom cache-handler') | |
| } | |
| async get(key) { | |
| console.log('cache-handler get', key) | |
| return cache.get(key) | |
| } | |
| async set(key, data) { | |
| console.log('cache-handler set', key) | |
| cache.set(key, { | |
| value: data, | |
| lastModified: Date.now(), | |
| }) | |
| } | |
| } | |
Xet Storage Details
- Size:
- 436 Bytes
- Xet hash:
- beca77607824b35a1813c8b88cf628f689e6bdec931ce29b7fa0fd7bf3a6ca1a
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.