cache

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: GPL-3.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAnything

func GetAnything(key interface{}, deleteOnGet ...bool) interface{}

GetAnything 读取缓存

func GetBool

func GetBool(key interface{}, deleteOnGet ...bool) bool

GetBool 读取缓存

func GetFloat

func GetFloat(key interface{}, deleteOnGet ...bool) float32

GetFloat 读取缓存

func GetInt

func GetInt(key interface{}, deleteOnGet ...bool) int

GetInt 读取缓存

func GetString

func GetString(key interface{}, deleteOnGet ...bool) string

GetString 读取缓存

func SetAnything

func SetAnything(key interface{}, value interface{}, duration ...time.Duration)

SetAnything 设置缓存

func SetBool

func SetBool(key interface{}, value bool, duration ...time.Duration)

SetBool 设置缓存

func SetFloat

func SetFloat(key interface{}, value float32, duration ...time.Duration)

SetFloat 设置缓存

func SetInt

func SetInt(key interface{}, value int, duration ...time.Duration)

SetInt 设置缓存

func SetString

func SetString(key interface{}, value string, duration ...time.Duration)

SetString 设置缓存

Types

This section is empty.

Jump to

Keyboard shortcuts

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