@qvant/qui-max
Version:
A Vue 3 Design system for Web.
15 lines (14 loc) • 359 B
JavaScript
import memoize from "./memoize.js";
var MAX_MEMOIZE_SIZE = 500;
function memoizeCapped(func) {
var result = memoize(func, function(key) {
if (cache.size === MAX_MEMOIZE_SIZE) {
cache.clear();
}
return key;
});
var cache = result.cache;
return result;
}
export { memoizeCapped as default };
//# sourceMappingURL=_memoizeCapped.js.map