maps

package
v0.0.0-...-8fbed71 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL