Versions in this module Expand all Collapse all v1 v1.0.0 Aug 11, 2025 Changes in this version + func MakeSafe[K comparable, V any](n int) map_cache.SafeMap[K, V] + func Make[K comparable, V any](n int) map_cache.Map[K, V] + type Safe struct + func (c *Safe[K, V]) Locker() sync.Locker + func (c *Safe[K, V]) RLocker() sync.Locker + func (sm *Safe[K, V]) All() iter.Seq[V] + func (sm *Safe[K, V]) Delete(key K) + func (sm *Safe[K, V]) Get(key K) (v V, ok bool) + func (sm *Safe[K, V]) Len() int + func (sm *Safe[K, V]) Put(key K, value V) + func (sm *Safe[K, V]) Scan() iter.Seq2[K, V] + type Unsafe struct + func (mapCache *Unsafe[K, V]) All() iter.Seq[V] + func (mapCache *Unsafe[K, V]) Delete(key K) + func (mapCache *Unsafe[K, V]) Get(key K) (v V, ok bool) + func (mapCache *Unsafe[K, V]) Len() int + func (mapCache *Unsafe[K, V]) Put(key K, value V) + func (mapCache *Unsafe[K, V]) Scan() iter.Seq2[K, V]