cache

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Cluster *redis.ClusterClient

	Client *redis.Client
)

Functions

func CleanCc

func CleanCc(cate string)

cleanCc 批量清除一类缓存

func DelCc

func DelCc(key string)

delCc 清缓存

func GetCc

func GetCc(key string, pointer interface{}) error

getCc 读缓存

func InitCache

func InitCache()

初始化缓存

func SetCc

func SetCc(key string, object interface{}, exp time.Duration)

setCc 写缓存

Types

This section is empty.

Jump to

Keyboard shortcuts

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