cache

package
v0.0.0-...-1ea07c6 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("cache entry not found")

Functions

func Clear

func Clear() error

func Get

func Get(key string, result any) error

func Put

func Put(key string, value any) error

Types

type Cache

type Cache struct {
	Key   string `json:"key" gorm:"primarykey"`
	Value string `json:"value"`
}

func All

func All() ([]Cache, error)

Jump to

Keyboard shortcuts

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