UNPKG

@kovalenko/http-request-cache

Version:

TS decorator for caching logic of API calls.

19 lines 472 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DefaultStorage = void 0; class DefaultStorage { constructor() { this.storage = new Map(); } getItem(key) { return this.storage.get(key); } setItem(key, item) { this.storage.set(key, item); } deleteItem(key) { this.storage.delete(key); } } exports.DefaultStorage = DefaultStorage; //# sourceMappingURL=default-storage.js.map