cache

package
v1.0.0-alpha.15 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close() error

func Default

func Default() *ristretto.Cache[string, []byte]

func Get

func Get[T any](key string) (T, bool)

func Init

func Init() error

func Set

func Set(key string, value any) error

Set set a value with default TTL

func SetWithoutTTL

func SetWithoutTTL(key string, value any) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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