Versions in this module Expand all Collapse all v0 v0.0.1 May 4, 2025 Changes in this version + type Cache struct + func New[K comparable, V any](size int) *Cache[K, V] + func (c *Cache[K, V]) Add(key K, value V) (oldValue V, ok bool) + func (c *Cache[K, V]) Cap() int + func (c *Cache[K, V]) Delete(key K) (value V, ok bool) + func (c *Cache[K, V]) Get(key K) (value V, ok bool) + func (c *Cache[K, V]) Has(key K) bool + func (c *Cache[K, V]) Init(size int) + func (c *Cache[K, V]) Items() func(yield func(K, V) bool) + func (c *Cache[K, V]) Len() int + func (c *Cache[K, V]) Reset()