store

package
v0.0.0-...-78aeb2e Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerticThreadSafeStore

type GenerticThreadSafeStore[K any] struct {
	// contains filtered or unexported fields
}

func NewGenericThreadSafeStore

func NewGenericThreadSafeStore[K any]() *GenerticThreadSafeStore[K]

func (*GenerticThreadSafeStore[K]) Get

func (s *GenerticThreadSafeStore[K]) Get(key string) (K, bool)

func (*GenerticThreadSafeStore[K]) GetAllPairs

func (s *GenerticThreadSafeStore[K]) GetAllPairs() map[string]K

func (*GenerticThreadSafeStore[K]) Set

func (s *GenerticThreadSafeStore[K]) Set(key string, val K)

Jump to

Keyboard shortcuts

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