chunk-CRHRHOXH.js 656 B

123456789101112131415161718192021222324252627282930313233343536
  1. import {
  2. h
  3. } from "./chunk-PT62335L.js";
  4. // node_modules/@arcgis/core/core/LRUCache.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, s) {
  10. this._storage.put(t, e2, s, 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. get maxSize() {
  25. return this._storage.maxSize;
  26. }
  27. set maxSize(t) {
  28. this._storage.maxSize = t;
  29. }
  30. };
  31. export {
  32. e
  33. };
  34. //# sourceMappingURL=chunk-CRHRHOXH.js.map