cache

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 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