cache

package
v0.0.0-...-d6ebf68 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// 用户缓存过期时间, 一年的秒数
	UserCacheExpireTime = 86400 * 365
)

Variables

This section is empty.

Functions

func Delete

func Delete(key string)

func Evict

func Evict()

清除所有缓存信息

func Get

func Get(key string) string

func Set

func Set(key string, entry interface{}, duration time.Duration)

Types

This section is empty.

Jump to

Keyboard shortcuts

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