UNPKG

whale-plus

Version:

A Component Library for Vue 3

24 lines (22 loc) 454 B
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(); } export { useMemoryCache }; //# sourceMappingURL=useMemoryCache.mjs.map