Versions in this module Expand all Collapse all v0 v0.1.5 Aug 19, 2025 Changes in this version + const ShardCount + type ConcurrentMap struct + func NewStringer[K Stringer, V any]() ConcurrentMap[K, V] + func NewWithCustomShardingFunction[K comparable, V any](sharding func(key K) uint32) ConcurrentMap[K, V] + func New[V any]() ConcurrentMap[string, V] + func (m *ConcurrentMap[K, V]) UnmarshalJSON(b []byte) (err error) + func (m ConcurrentMap[K, V]) Clear() error + func (m ConcurrentMap[K, V]) Count() int + func (m ConcurrentMap[K, V]) Get(key K) (V, bool) + func (m ConcurrentMap[K, V]) GetShard(key K) *ConcurrentMapShared[K, V] + func (m ConcurrentMap[K, V]) Has(key K) bool + func (m ConcurrentMap[K, V]) IsEmpty() bool + func (m ConcurrentMap[K, V]) Items() map[K]V + func (m ConcurrentMap[K, V]) IterBuffered() <-chan Tuple[K, V] + func (m ConcurrentMap[K, V]) IterCb(fn IterCb[K, V]) + func (m ConcurrentMap[K, V]) Keys() []K + func (m ConcurrentMap[K, V]) MSet(data map[K]V) + func (m ConcurrentMap[K, V]) MarshalJSON() ([]byte, error) + func (m ConcurrentMap[K, V]) Pop(key K) (v V, exists bool) + func (m ConcurrentMap[K, V]) Remove(key K) (err error) + func (m ConcurrentMap[K, V]) RemoveCb(key K, cb RemoveCb[K, V]) bool + func (m ConcurrentMap[K, V]) Set(key K, value V) + func (m ConcurrentMap[K, V]) SetIfAbsent(key K, value V) bool + func (m ConcurrentMap[K, V]) Upsert(key K, value V, cb UpsertCb[V]) (res V) + type ConcurrentMapShared struct + type IterCb func(key K, v V) + type RemoveCb func(key K, v V, exists bool) bool + type Stringer interface + type Tuple struct + Key K + Val V + type UpsertCb func(exist bool, valueInMap V, newValue V) V