Files
simply_cpq/website/node_modules/@mui/x-data-grid/internals/utils/cache.mjs
T
2026-08-07 21:39:30 +02:00

18 lines
369 B
JavaScript

import { getKeyDefault } from "../../hooks/features/dataSource/cache.mjs";
export class TestCache {
constructor() {
this.cache = new Map();
}
set(key, value) {
this.cache.set(getKeyDefault(key), value);
}
get(key) {
return this.cache.get(getKeyDefault(key));
}
size() {
return this.cache.size;
}
clear() {
this.cache.clear();
}
}