cache

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultClient = cache.New(1*time.Hour, 24*time.Hour)

Functions

func CacheFunc

func CacheFunc(fn func(params ...any) (any, error), cacheKey string, duration time.Duration, params ...any) (any, error)

CacheFunc cache func result func input could be any params func output should be (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