@kuma-ui/sheet
Version:
🐻 Kuma UI is a utility-first, zero-runtime CSS-in-JS library that offers an outstanding developer experience and optimized performance.
29 lines (27 loc) • 515 B
JavaScript
// src/cache.ts
var StyleCache = class _StyleCache {
static instance;
cache;
constructor() {
this.cache = /* @__PURE__ */ new Map();
}
static getInstance() {
if (!_StyleCache.instance) {
_StyleCache.instance = new _StyleCache();
}
return _StyleCache.instance;
}
get(key) {
return this.cache.get(key);
}
set(key, styles) {
this.cache.set(key, styles);
}
reset() {
this.cache.clear();
}
};
var styleCache = StyleCache.getInstance();
export {
styleCache
};