kv

package
v0.0.0-...-66c0c6b Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IThreadSafeStore

type IThreadSafeStore[T any] interface {
	io.Closer
	AddOrUpdate(key string, obj T)
	Replace(items map[string]T)
	Delete(key string)
	Get(key string) (item T, exists bool)
	ListKeys(filters ...SafeStoreKeyFilterFunc) []string
	ListValues(keys ...string) (items []T)
}

func NewThreadSafeMap

func NewThreadSafeMap[T any]() IThreadSafeStore[T]

type SafeStoreKeyFilterFunc

type SafeStoreKeyFilterFunc func(key string) bool

Jump to

Keyboard shortcuts

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