chunk-7IKYLNB5.js 544 B

123456789101112131415161718192021222324252627282930
  1. import {
  2. h
  3. } from "./chunk-522WBHUO.js";
  4. // node_modules/@arcgis/core/core/ItemCache.js
  5. var e = class {
  6. constructor(e2, s) {
  7. this._storage = new h(), this._storage.maxSize = e2, s && this._storage.registerRemoveFunc("", s);
  8. }
  9. put(t, e2) {
  10. this._storage.put(t, e2, 1, 1);
  11. }
  12. pop(t) {
  13. return this._storage.pop(t);
  14. }
  15. get(t) {
  16. return this._storage.get(t);
  17. }
  18. clear() {
  19. this._storage.clearAll();
  20. }
  21. destroy() {
  22. this._storage.destroy();
  23. }
  24. };
  25. export {
  26. e
  27. };
  28. //# sourceMappingURL=chunk-7IKYLNB5.js.map