default-cache.js 319 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 class DefaultCache { constructor() { this.store = {}; } get(key) { return this.store[key]; } remove(key) { delete this.store[key]; } set(key, value) { this.store[key] = value; } clear() { this.store = {}; } } export default DefaultCache;