Versions in this module Expand all Collapse all v0 v0.9.0 Aug 18, 2026 Changes in this version + type TTLCache struct + func NewTTLCache[T comparable, V any](conf TTLConfig) *TTLCache[T, V] + func (c *TTLCache[T, V]) Close() + func (c *TTLCache[T, V]) Get(item T) (V, bool) + func (c *TTLCache[T, V]) Set(item T, v V) + func (c *TTLCache[T, V]) StartGC() + type TTLConfig struct + GCConfig TTLGC + ItemTTL time.Duration + type TTLGC struct + Enabled bool + Interval time.Duration + type TTLItem struct