memory

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: AGPL-3.0 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 struct {
	// contains filtered or unexported fields
}

Store implements ports.StateStore in memory. Safe for concurrent use.

func New

func New() *Store

New creates a new in-memory store.

func (*Store) Delete

func (s *Store) Delete(ctx context.Context, sessionID string) error

Delete removes the state.

func (*Store) List

func (s *Store) List(ctx context.Context) ([]string, error)

List returns active sessions.

func (*Store) Load

func (s *Store) Load(ctx context.Context, sessionID string) (*domain.State, error)

Load retrieves the state from memory.

func (*Store) Save

func (s *Store) Save(ctx context.Context, sessionID string, state *domain.State) error

Save persists the state in memory.

Jump to

Keyboard shortcuts

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