map_cache

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Maker

type Maker[K comparable, V any] func(n int) Map[K, V]

type Map

type Map[K comparable, V any] interface {
	Get(key K) (v V, ok bool)
	Put(key K, v V)
	Delete(key K)
	All() iter.Seq[V]
	Scan() iter.Seq2[K, V]
	Len() int
}

type SafeMaker

type SafeMaker[K comparable, V any] func(n int) SafeMap[K, V]

type SafeMap

type SafeMap[K comparable, V any] interface {
	Map[K, V]
	Locker() sync.Locker
	RLocker() sync.Locker
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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