MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / Cache

Function Cache

assets/js/avatarMaker_js/html2canvas.js:2487–2491  ·  view source on GitHub ↗
(id, options)

Source from the content-addressed store, hash-verified

2485 }());
2486 var Cache = /** @class */ (function () {
2487 function Cache(id, options) {
2488 this.id = id;
2489 this._options = options;
2490 this._cache = {};
2491 }
2492 Cache.prototype.addImage = function (src) {
2493 var result = Promise.resolve();
2494 if (this.has(src)) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected