cache

package
v0.0.0-...-96e820d Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultExpiration = 3600
	DEFAULT           = time.Duration(0)
	FOREVER           = time.Duration(-1)
	DefaultKey        = "github.com/foxiswho/shop-go/modules/cache"
)

Variables

This section is empty.

Functions

func Cache

func Cache() echo.MiddlewareFunc

func Client

func Client() ec.CacheStore

缓存

func ClientMemory

func ClientMemory() ec.CacheStore

内存 缓存

func ClientRedis

func ClientRedis() ec.CacheStore

Redis 缓存

func ClientRedisStore

func ClientRedisStore() *ec.RedisStore

Redis 缓存

func Default

func Default(c echo.Context) ec.CacheStore

shortcut to get Cache

func NewClient

func NewClient(cacheStore string) ec.CacheStore

新客户端

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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