Documentation
¶
Index ¶
- func LoadMemory(ctx context.Context, db *sql.DB, key string, dest any) error
- func LoadWeightMemory(ctx context.Context, db *sql.DB, key string) (*sync.Map, error)
- func SaveMemory(ctx context.Context, db *sql.DB, key string, src any) error
- func SaveWeightMemory(ctx context.Context, db *sql.DB, key string, wm *sync.Map) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadMemory ¶
LoadMemory loads a JSON memory blob from the database into dest (must be a pointer).
func LoadWeightMemory ¶
func SaveMemory ¶
SaveMemory saves a Go struct as JSON into the database.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.