Versions in this module Expand all Collapse all v0 v0.0.11 Jan 19, 2026 Changes in this version + const DefaultTTL + const KeyringService + func GenerateCacheKey(providerID string, kind string, config map[string]interface{}) string + type Cache struct + func New(opts ...Option) *Cache + func (c *Cache) CleanExpired() error + func (c *Cache) Clear() error + func (c *Cache) ClearProvider(cacheKey string) error + func (c *Cache) Get(cacheKey string) (map[string]string, bool) + func (c *Cache) GetTTL() time.Duration + func (c *Cache) IsAvailable() bool + func (c *Cache) Set(cacheKey string, secrets map[string]string) error + func (c *Cache) Stats() (total int, valid int, expired int) + type CacheStore struct + Providers map[string]*CachedSecrets + type CachedSecrets struct + CachedAt time.Time + ExpiresAt time.Time + Secrets map[string]string + type Option func(*Cache) + func WithTTL(ttl time.Duration) Option