Versions in this module Expand all Collapse all v1 v1.0.1 Dec 30, 2025 Changes in this version + type GenericCache struct + func NewGeneric[K comparable, V any](defaultDuration time.Duration) *GenericCache[K, V] + func (cache *GenericCache[K, V]) Delete(key K) + func (cache *GenericCache[K, V]) DeleteExpired() + func (cache *GenericCache[K, V]) Get(key K) (V, bool) + func (cache *GenericCache[K, V]) Set(key K, value V, duration time.Duration) v1.0.0 Dec 17, 2025 Changes in this version + type Cache struct + func New(defaultDuration time.Duration) *Cache + func (cache *Cache) Delete(key string) + func (cache *Cache) DeleteExpired() + func (cache *Cache) Get(key string) (any, bool) + func (cache *Cache) Set(key string, value any, duration time.Duration)