cache

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ModeCache = 1
	ModeRedis = 2
)

Variables

This section is empty.

Functions

func Del

func Del(cacheKey string) resp.Resp

Del 删除缓存

func Get

func Get(cacheKey string) resp.Resp

Get 获取缓存

func GetMap

func GetMap(cacheKey string) resp.Resp

GetMap 获取缓存

func Set

func Set(cacheKey string, data string) resp.Resp

Set 设置缓存

func SetMap

func SetMap(cacheKey string, data g.Map) resp.Resp

Set 设置缓存

func Setex

func Setex(cacheKey string, data string, timeout int) resp.Resp

Setex 设置缓存带超时时间

func SetexMap

func SetexMap(cacheKey string, data g.Map, timeout int) resp.Resp

Setex 设置缓存带超时时间

Types

This section is empty.

Jump to

Keyboard shortcuts

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