Versions in this module Expand all Collapse all v1 v1.0.0 May 10, 2026 Changes in this version + type CacheEntry struct + ExpiresAt time.Time + Key string + Value interface{} + type LRUCache struct + func New(capacity int, ttl time.Duration, cleanupInterval time.Duration) *LRUCache + func (c *LRUCache) Get(key string) (interface{}, bool) + func (c *LRUCache) GetOrLoad(key string, loader func() (interface{}, error)) (interface{}, error) + func (c *LRUCache) GetOrLoadWithFallback(key string, loader func() (interface{}, error), fallback interface{}) (interface{}, error) + func (c *LRUCache) LoadFromFile(filename string) error + func (c *LRUCache) SaveToFile(filename string) error + func (c *LRUCache) Set(key string, value interface{}) + func (c *LRUCache) StopCleanup()