memory

package
v0.49.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 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 struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewStore

func NewStore() *Store

func (*Store) Close

func (s *Store) Close() error

func (*Store) Delete

func (s *Store) Delete(key []byte) error

func (*Store) Get

func (s *Store) Get(key []byte) ([]byte, error)

func (*Store) Set

func (s *Store) Set(key []byte, value []byte) error

func (*Store) Update

func (s *Store) Update(key []byte, f func([]byte) ([]byte, error)) error

Jump to

Keyboard shortcuts

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