UNPKG

@morjs/runtime-web

Version:
22 lines 464 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class CacheMap { constructor(map = {}) { this.map = {}; this.map = map; } set(key, value) { this.map[key] = value; } get(key) { return this.map[key]; } has(key) { return !!this.map[key]; } delete(key) { delete this.map[key]; } } exports.default = new CacheMap(); //# sourceMappingURL=cacheMap.js.map