@hoosei/voxweave-react
Version:
A customizable and interactive voice UI component for React applications
30 lines (29 loc) • 612 B
JavaScript
function c(i) {
if (i < 1)
return {
get: function() {
},
set: function() {
}
};
var u = 0, t = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map();
function a(r, e) {
t.set(r, e), u++, u > i && (u = 0, f = t, t = /* @__PURE__ */ new Map());
}
return {
get: function(e) {
var n = t.get(e);
if (n !== void 0)
return n;
if ((n = f.get(e)) !== void 0)
return a(e, n), n;
},
set: function(e, n) {
t.has(e) ? t.set(e, n) : a(e, n);
}
};
}
export {
c as createLruCache
};
//# sourceMappingURL=index73.js.map