@mui/x-data-grid
Version:
The Community plan edition of the MUI X Data Grid components.
25 lines (24 loc) • 513 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.TestCache = void 0;
var _cache = require("../../hooks/features/dataSource/cache");
class TestCache {
constructor() {
this.cache = new Map();
}
set(key, value) {
this.cache.set((0, _cache.getKeyDefault)(key), value);
}
get(key) {
return this.cache.get((0, _cache.getKeyDefault)(key));
}
size() {
return this.cache.size;
}
clear() {
this.cache.clear();
}
}
exports.TestCache = TestCache;
;