cache_module

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//缓存时间
	Cache_Second               = time.Hour * 24 * 365
	System_Cache_Sync_Second_2 = time.Minute * 5
)

Functions

func Del

func Del(key string) error

删除 缓存

func Get

func Get(key string, value interface{}) error

获取 缓存

func LoadOneCache

func LoadOneCache()

func Set

func Set(key string, value interface{}, expire time.Duration) error

设置 缓存

func SystemGet

func SystemGet(key, field string, value interface{}) error

获取 同步缓存

func SystemGet2

func SystemGet2(key, field string, value interface{}) error

获取 同步二级缓存

func SystemSet

func SystemSet(key, field string, value interface{}, expire time.Duration) error

设置 同步缓存

func SystemSet2

func SystemSet2(key, field string, value interface{}, expire time.Duration) error

设置 同步二级缓存

Types

This section is empty.

Jump to

Keyboard shortcuts

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