store

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store[K cmp.Ordered, V any] struct {
	// contains filtered or unexported fields
}

func NewCaseInsensitiveStore added in v0.7.2

func NewCaseInsensitiveStore[V any]() *Store[string, V]

func NewSimpleStore

func NewSimpleStore[K cmp.Ordered, V any]() *Store[K, V]

func NewStore

func NewStore[K cmp.Ordered, V any](keyNormalizer func(key K) K) *Store[K, V]

func (*Store[K, V]) Add

func (store *Store[K, V]) Add(key K, item V)

func (*Store[K, V]) Get

func (store *Store[K, V]) Get(key K) V

func (*Store[K, V]) GetKeys added in v0.7.2

func (store *Store[K, V]) GetKeys() []K

func (*Store[K, V]) Has

func (store *Store[K, V]) Has(key K) bool

Jump to

Keyboard shortcuts

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