cache

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeySessions  = "session"
	KeyStateData = "state_data"
)

Variables

This section is empty.

Functions

func Get

func Get(subCache, key string, target any) (bool, error)

func GetSession

func GetSession(key string, target *model.UserClaims) (bool, error)

func Init

func Init()

func Set

func Set(subCache, key string, value any, ttl time.Duration) error

func SetSession

func SetSession(key string, value model.UserClaims) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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