Versions in this module Expand all Collapse all v1 v1.0.1 Jul 13, 2026 Changes in this version + type AtomicMap struct + func (r *AtomicMap[K, V]) Get(key K) (V, bool) + func (r *AtomicMap[K, V]) Len() int + func (r *AtomicMap[K, V]) Store(v map[K]V) + type RWMap struct + func NewRWMap[K comparable, T any](capacity int) *RWMap[K, T] + func (r *RWMap[K, T]) Copy() map[K]T + func (r *RWMap[K, T]) Get(k K) (T, bool) + func (r *RWMap[K, T]) Keys() []K + func (r *RWMap[K, T]) Len() int + func (r *RWMap[K, T]) Set(k K, t T) + func (r *RWMap[K, T]) Store(mapping map[K]T) + type Refresher func() (map[K]V, error) + type RefreshingAtomicMap struct + func NewRefreshingAtomicMap[K comparable, V any](ctx context.Context, period time.Duration, refresher Refresher[K, V]) (*RefreshingAtomicMap[K, V], error) + func (r *RefreshingAtomicMap[K, V]) Get(key K) (V, bool) + func (r *RefreshingAtomicMap[K, V]) Refresh(ctx context.Context) error