/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
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};
