Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShardedMap ¶
type ShardedMap[K comparable, V any] struct { // contains filtered or unexported fields }
func NewShardedMap ¶
func NewShardedMap[K comparable, V any](nshards ShardsCount) *ShardedMap[K, V]
func (*ShardedMap[K, V]) Delete ¶
func (sm *ShardedMap[K, V]) Delete(key K)
func (*ShardedMap[K, V]) Get ¶
func (sm *ShardedMap[K, V]) Get(key K) (V, bool)
func (*ShardedMap[K, V]) Keys ¶
func (sm *ShardedMap[K, V]) Keys() []K
func (*ShardedMap[K, V]) Len ¶
func (sm *ShardedMap[K, V]) Len() int64
func (*ShardedMap[K, V]) Set ¶
func (sm *ShardedMap[K, V]) Set(key K, value V)
type ShardsCount ¶
type ShardsCount uint
Click to show internal directories.
Click to hide internal directories.