Versions in this module Expand all Collapse all v1 v1.0.0 Jan 12, 2026 Changes in this version + type Config struct + CleanupInterval pkgConfig.Duration + DefaultExpiration pkgConfig.Duration + EnableStats bool + Enabled bool + func (c *Config) ToOptions() (*Options, error) + func (c *Config) Validate() error + type LocalCache struct + func NewLocalCache(opts *Options) *LocalCache + func (lc *LocalCache) Clear() + func (lc *LocalCache) Delete(key string) + func (lc *LocalCache) Get(key string) (interface{}, bool) + func (lc *LocalCache) GetStats() *Stats + func (lc *LocalCache) ItemCount() int + func (lc *LocalCache) Set(key string, value interface{}, expiration time.Duration) + type Options struct + CleanupInterval time.Duration + DefaultExpiration time.Duration + EnableStats bool + func DefaultOptions() *Options + type Stats struct + Deletes int64 + Hits int64 + Items int64 + MemorySize int64 + Misses int64 + Sets int64