UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

3 lines (2 loc) 545 B
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */ import"../../../../core/has.js";import{baseArrayMemory as e,baseObjectMemory as t}from"../../../../core/memoryEstimations.js";class s{constructor(e){this._cache=e.newCache("QueryEngine",null,-1)}clear(){this._cache.clear()}destroy(){this._cache.destroy()}get(e){return this._cache.get(e)?.items}put(e,t){this._cache.put(e,new r(t))}get test(){}}class r{constructor(e){this.items=e}get usedMemory(){return this.items.reduce((e,t)=>e+t.usedMemory,e+t)}}export{s as QueryEngineCache};