package
0.0.0-20241212132234-0076f9e1ccd7
Repository: https://github.com/basecomplextech/baselibrary.git
Documentation: pkg.go.dev

# Functions

NewAtomicMap returns a new atomic map.
NewAtomicShardedMap returns a new atomic sharded map.
NewLockMap returns a new lock map.
NewShardedMap returns a new sharded map.
NewSyncMap returns a new generic wrapper around a standard [sync.Map].

# Interfaces

AtomicMap is a goroutine-safe hash map based on atomic operations.
AtomicShardedMap is a goroutine-safe hash map based on atomic operations, multiple shards to reduce contention, and hierarchical hashing.
KeyLock is a single lock for a key, the lock must be freed after use.
LockedKey is a locked key which is unlocked when freed.
LockedLockMap is an interface to interact with a map locked in exclusive mode.
LockedMap provides an exclusive access to an async map.
LockMap holds locks for different keys.
Map is an abstract interface for a concurrent map.
ShardedMap is a map which uses multiple hash maps each guarded by a separate mutex.
SyncMap is a generic wrapper around the standard sync.Map.