Versions in this module Expand all Collapse all v0 v0.0.2 Jun 14, 2021 v0.0.1 Jul 16, 2020 Changes in this version + const DefaultCacheLimit + const DefaultCacheRefreshInterval + const DefaultCacheTTL + type ConfigCache struct + func NewConfigCache(ttl time.Duration, maxEntries int) *ConfigCache + func NewDefaultConfigCache() *ConfigCache + func (scp *ConfigCache) Delete(key string) + func (scp *ConfigCache) FlushExpired() + func (scp *ConfigCache) Get(key string) (Value, bool) + func (scp *ConfigCache) Refresh() + func (scp *ConfigCache) RunRefreshWorker(interval time.Duration, stop chan struct{}) error + func (scp *ConfigCache) Set(key string, v Value) error + type ConfigurationCache interface + Delete func(key string) + FlushExpired func() + Get func(key string) (Value, bool) + Refresh func() + Set func(key string, value Value) error + type RefreshCb func() (client.ProxyConfig, error) + type Value struct + Item client.ProxyConfig + func (v *Value) SetExpiry(t time.Time) *Value + func (v *Value) SetRefreshCallback(fn RefreshCb) *Value