store

package
v0.0.0-...-f06a132 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 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 Store

type Store[T comparable, U any] struct {
	// contains filtered or unexported fields
}

func NewStore

func NewStore[T comparable, U any]() *Store[T, U]

func (*Store[T, U]) Delete

func (u *Store[T, U]) Delete(key T)

func (*Store[T, U]) Get

func (u *Store[T, U]) Get(key T) (U, error)

func (*Store[T, U]) Set

func (u *Store[T, U]) Set(key T, value U)

Jump to

Keyboard shortcuts

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