store

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRecordNotFound = errors.New("record not found")

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

func New

func New() *Store

func (*Store) Delete

func (s *Store) Delete(key string)

func (*Store) Get

func (s *Store) Get(key string) Value[any]

func (*Store) GetOnce

func (s *Store) GetOnce(key string) (*Value[any], error)

func (*Store) Set

func (s *Store) Set(key string, value any)

type Value

type Value[T any] struct {
	// contains filtered or unexported fields
}

func (*Value[T]) Parse

func (v *Value[T]) Parse(dest T) error

Jump to

Keyboard shortcuts

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