cache

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: May 17, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const OneDay = OneHour * 24
View Source
const OneHour = 3600
View Source
const OneMinute = 60
View Source
const OneWeek = OneDay * 7
View Source
const ThreeDays = OneDay * 3

Variables

This section is empty.

Functions

func Delete

func Delete(key string) bool

func Deletef

func Deletef(template string, key ...any) bool

func Get

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

func Getf

func Getf[T any](template string, key ...any) (T, error)

func Set

func Set(key string, value any, seconds ...int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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