homebridge-config-ui-x
Version:
A web based management, configuration and control platform for Homebridge.
1 lines • 571 B
JavaScript
import {E,ae as C}from'./main-ONDCASUV.js';var d=3e4,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 \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();export{p};