Spaces:
Running
Running
Download 731ai/node_modules/pdf-lib/cjs/utils/Cache.js from u11310019/interactive-multi-web: direct link, hf CLI and curl.
- Browser
- Download file 689 Bytes
-
https://huggingface.co/spaces/u11310019/interactive-multi-web/resolve/main/731ai/node_modules/pdf-lib/cjs/utils/Cache.js
- Command line
-
hf download hf://spaces/u11310019/interactive-multi-web/731ai/node_modules/pdf-lib/cjs/utils/Cache.js
-
curl -L -o Cache.js https://huggingface.co/spaces/u11310019/interactive-multi-web/resolve/main/731ai/node_modules/pdf-lib/cjs/utils/Cache.js
689 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| var Cache = /** @class */ (function () { | |
| function Cache(populate) { | |
| this.populate = populate; | |
| this.value = undefined; | |
| } | |
| Cache.prototype.getValue = function () { | |
| return this.value; | |
| }; | |
| Cache.prototype.access = function () { | |
| if (!this.value) | |
| this.value = this.populate(); | |
| return this.value; | |
| }; | |
| Cache.prototype.invalidate = function () { | |
| this.value = undefined; | |
| }; | |
| Cache.populatedBy = function (populate) { return new Cache(populate); }; | |
| return Cache; | |
| }()); | |
| exports.default = Cache; | |
| //# sourceMappingURL=Cache.js.map |