whale-plus
Version:
A Component Library for Vue 3
28 lines (24 loc) • 546 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
class MemoryCacheStore {
constructor() {
this.store = /* @__PURE__ */ new Map();
}
async get(key) {
return this.store.get(key);
}
async set(key, value) {
this.store.set(key, value);
}
async delete(key) {
this.store.delete(key);
}
async has(key) {
return this.store.has(key);
}
}
function useMemoryCache() {
return new MemoryCacheStore();
}
exports.useMemoryCache = useMemoryCache;
//# sourceMappingURL=useMemoryCache.js.map