@mui/x-data-grid
Version:
The Community plan edition of the MUI X Data Grid components.
19 lines • 393 B
JavaScript
import { getKeyDefault } from "../../hooks/features/dataSource/cache.js";
export class TestCache {
constructor() {
this.cache = void 0;
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();
}
}