Versions in this module Expand all Collapse all v0 v0.1.1 Jan 13, 2026 v0.1.0 Jan 12, 2026 Changes in this version + type Cache struct + func New[Key comparable, Value any]() *Cache[Key, Value] + func (c *Cache[Key, Value]) Clear() + func (c *Cache[Key, Value]) Get(key Key) (Value, bool) + func (c *Cache[Key, Value]) GetOrSet(key Key, getOrSetFn GetOrSetFn[Key, Value]) (Value, error) + func (c *Cache[Key, Value]) Remove(key Key) (Value, bool) + func (c *Cache[Key, Value]) Set(key Key, value Value) + type GetOrSetFn func(Key) (Value, error)