umap

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 19, 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 Shard

type Shard struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

type ShardMap

type ShardMap []*Shard

ShardMap used for segmentation cached data

func NewSharedMap

func NewSharedMap(n int) ShardMap

func (ShardMap) Get

func (m ShardMap) Get(key string) any

func (ShardMap) Keys

func (m ShardMap) Keys() []string

func (ShardMap) Set

func (m ShardMap) Set(key string, val any)

Jump to

Keyboard shortcuts

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