{"version":3,"sources":["../../src/cache/nullCache.ts"],"names":["NullCache","BaseCache","enabled","set","_key","_value","get","undefined","has","delete","clear","size","createSnapshot","loadSnapshot","snapshot","Object","assign"],"mappings":";;;;;;AAkBO,MAAMA,kBAAqBC,kBAAAA,CAAAA;EAlBlC;;;EAmBEC,OAAU,GAAA,KAAA;EAEV,MAAMC,GAAAA,CAAIC,MAAcC,MAAW,EAAA;AAAC;AAEpC,EAAA,MAAMC,IAAIF,IAAc,EAAA;AACtB,IAAOG,OAAAA,MAAAA;AACT;AAEA,EAAA,MAAMC,IAAIJ,IAAc,EAAA;AACtB,IAAO,OAAA,KAAA;AACT;AAEA,EAAA,MAAMK,OAAOL,IAAc,EAAA;AACzB,IAAO,OAAA,IAAA;AACT;AAEA,EAAA,MAAMM,KAAQ,GAAA;AAAC;AAEf,EAAA,MAAMC,IAAO,GAAA;AACX,IAAO,OAAA,CAAA;AACT;EAEAC,cAAiB,GAAA;AACf,IAAO,OAAA;AACLV,MAAAA,OAAAA,EAAS,IAAKA,CAAAA;AAChB,KAAA;AACF;AAEAW,EAAAA,YAAAA,CAAaC,QAAkD,EAAA;AAC7DC,IAAOC,MAAAA,CAAAA,MAAAA,CAAO,MAAMF,QAAAA,CAAAA;AACtB;AACF","file":"nullCache.cjs","sourcesContent":["/**\n * Copyright 2025 IBM Corp.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { BaseCache } from \"@/cache/base.js\";\n\nexport class NullCache<T> extends BaseCache<T> {\n  enabled = false;\n\n  async set(_key: string, _value: T) {}\n\n  async get(_key: string) {\n    return undefined;\n  }\n\n  async has(_key: string) {\n    return false;\n  }\n\n  async delete(_key: string) {\n    return true;\n  }\n\n  async clear() {}\n\n  async size() {\n    return 0;\n  }\n\n  createSnapshot() {\n    return {\n      enabled: this.enabled,\n    };\n  }\n\n  loadSnapshot(snapshot: ReturnType<typeof this.createSnapshot>) {\n    Object.assign(this, snapshot);\n  }\n}\n"]}