sessionvalkey

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

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

func NewRepository

func NewRepository(valkeyClient valkey.Client, prefix string) *Repository

func (*Repository) DeleteState added in v0.1.0

func (r *Repository) DeleteState(ctx context.Context, stateID string) error

func (*Repository) ListSessions added in v0.1.0

func (r *Repository) ListSessions(ctx context.Context) ([]session.Session, error)

func (*Repository) LoadSession

func (r *Repository) LoadSession(ctx context.Context, sessionID string) (s session.Session, _ error)

func (*Repository) LoadState

func (r *Repository) LoadState(ctx context.Context, stateID string) (state session.State, _ error)

func (*Repository) StoreSession

func (r *Repository) StoreSession(ctx context.Context, s session.Session) error

func (*Repository) StoreState

func (r *Repository) StoreState(ctx context.Context, state session.State) error

Jump to

Keyboard shortcuts

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