Versions in this module Expand all Collapse all v1 v1.0.0 Jan 26, 2025 Changes in this version + type Cache struct + func NewCache[K comparable, V any]() *Cache[K, V] + func (c *Cache[K, V]) Delete(key K) + func (c *Cache[K, V]) DeleteAll() + func (c *Cache[K, V]) Load(key K) (value V, ok bool) + func (c *Cache[K, V]) LoadOrStore(key K, value V) (actual V, loaded bool) + func (c *Cache[K, V]) RangeAll() (values []V) + func (c *Cache[K, V]) RangeCon(f func(key K, value V) bool) (values []V) + func (c *Cache[K, V]) Store(key K, value V) + func (c *Cache[K, V]) StoreAll(f func(value V) K, values []V)