UNPKG

homebridge-config-ui-x

Version:

A web based management, configuration and control platform for Homebridge.

2 lines (1 loc) 611 B
import{X as c}from"./chunk-LTGI3NYM.js";import{h as n}from"./chunk-B4AJQJMI.js";var d=3e4,p=(()=>{class e{store=new Map;get(v,g){return n(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 \u0275fac=function(r){return new(r||e)};static \u0275prov=c({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();export{p as a};