Versions in this module Expand all Collapse all v1 v1.0.39 Oct 28, 2026 v1.0.38 Oct 20, 2026 Changes in this version + type CacheItem struct + ExpiresAt time.Time + Value V + type TTLCache struct + func NewTTLCache[K comparable, V any]() *TTLCache[K, V] + func (c *TTLCache[K, V]) CleanExpired() + func (c *TTLCache[K, V]) Clear() + func (c *TTLCache[K, V]) Delete(key K) + func (c *TTLCache[K, V]) Get(key K) (V, bool) + func (c *TTLCache[K, V]) Set(key K, value V, ttl time.Duration)