Buckets:
| const cache = new Map() | |
| class CacheHandler { | |
| constructor(options) { | |
| this.options = options | |
| this.cache = {} | |
| console.log('initialized custom cache-handler') | |
| console.log('cache handler - cjs module exports') | |
| } | |
| 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(), | |
| }) | |
| } | |
| } | |
| module.exports = CacheHandler | |
Xet Storage Details
- Size:
- 564 Bytes
- Xet hash:
- db71dd85ba7916fe140edbb5e118b98afefc5849c675366ae91133b9592affe4
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.