homebridge-config-ui-x
Version:
A web based management, configuration and control platform for Homebridge.
1 lines • 602 B
JavaScript
import{a as E}from"./chunk-D39XL-zh.js";import{v as C}from"./chunk-D96TCRAL.js";var d=3e4;var p=(()=>{class e{store=new Map;get(v,g){return E(this,arguments,function*(t,r,l=d){let i=Date.now(),o=this.store.get(t);if(o&&o.expiresAt>i)try{return yield o.value}catch(a){this.store.delete(t)}let s=r();this.store.set(t,{value:s,expiresAt:i+l});try{return yield s}catch(a){throw this.store.delete(t),a}})}invalidate(t){this.store.delete(t)}invalidateAll(){this.store.clear()}static ɵfac=function(r){return new(r||e)};static ɵprov=C({token:e,factory:e.ɵfac,providedIn:`root`})}return e})();export{p as t};