Versions in this module Expand all Collapse all v1 v1.0.0 Dec 19, 2025 Changes in this version + type Cache struct + func Cacheable[K comparable, V any](getter func(key K) V, ttl *time.Duration) Cache[K, V] + func (c *Cache[K, V]) Delete(k K) + func (c *Cache[K, V]) Exists(k K) bool + func (c *Cache[K, V]) Get(k K) V + func (c *Cache[K, V]) Set(k K, v V, ttl time.Duration) + func (c *Cache[K, V]) Stop() + type Cacher interface + Delete func(k K) + Exists func(k K) bool + Get func(k K) V + Set func(k K, v V, ttl time.Duration) + Stop func() Other modules containing this package github.com/useinsider/go-pkg