inmemory

package
v0.0.0-...-51d5a38 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("no value set for key")
)

Functions

This section is empty.

Types

type Engine

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

func NewEngine

func NewEngine(log *slog.Logger) *Engine

func (*Engine) DEL

func (e *Engine) DEL(ctx context.Context, key string) error

func (*Engine) GET

func (e *Engine) GET(ctx context.Context, key string) (string, error)

func (*Engine) SET

func (e *Engine) SET(ctx context.Context, key, value string) error

Jump to

Keyboard shortcuts

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