Documentation
¶
Index ¶
- Constants
- type Map
- func (m *Map[K, V]) Del(key K)
- func (m *Map[K, V]) Get(key K, shardKey uint) (value V, found bool)
- func (m *Map[K, V]) GetShardKey(key K) uint
- func (m *Map[K, V]) Has(key K) bool
- func (m *Map[K, V]) Len() int64
- func (m *Map[K, V]) Mem() uintptr
- func (m *Map[K, V]) Rng(fn func(K, V))
- func (m *Map[K, V]) Set(key K, value V)
- type Sizer
Constants ¶
View Source
const ShardCount = 2048
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map[K comparable, V Sizer] struct { // contains filtered or unexported fields }
func (*Map[K, V]) GetShardKey ¶
Click to show internal directories.
Click to hide internal directories.