cache

package
v0.0.0-...-a85be89 Latest Latest
Warning

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

Go to latest
Published: May 22, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

声明一个全局的缓存对象

Functions

func ClearCache

func ClearCache() error

清空缓存

func DeleteCache

func DeleteCache(key string) error

删除缓存

func GetCache

func GetCache(key string) ([]byte, error)

获取缓存

func GetCacheObj

func GetCacheObj() *bigcache.BigCache

获取缓存对象

func InitCache

func InitCache(cfg *conf.CacheConfig)

初始化缓存

func SetCache

func SetCache(key string, value []byte) error

写入缓存

Types

This section is empty.

Jump to

Keyboard shortcuts

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