Versions in this module Expand all Collapse all v1 v1.0.0 Jul 31, 2026 Changes in this version + const NoTTL + type Cache struct + func New[K comparable, V any](ops ...Option) *Cache[K, V] + func (c *Cache[K, V]) Clear() + func (c *Cache[K, V]) Delete(key K) + func (c *Cache[K, V]) Get(key K) (V, bool) + func (c *Cache[K, V]) Has(key K) bool + func (c *Cache[K, V]) Set(key K, value V, ttl time.Duration) + func (c *Cache[K, V]) Start() + func (c *Cache[K, V]) Stop() + type Option int + const SlidingExpiration