memory

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: MIT 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 is an in-memory SessionStore backed by a sync.RWMutex-protected map. Suitable for development and single-instance deployments.

func New

func New() *Store

New returns a ready-to-use in-memory session store.

func (*Store) Delete

func (s *Store) Delete(sessionID string) error

func (*Store) Get

func (s *Store) Get(sessionID string, key string) (string, error)

func (*Store) Set

func (s *Store) Set(sessionID string, key string, value string) error

Jump to

Keyboard shortcuts

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