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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//只执行一次
	Is_Load_Once = false
	//缓存时间
	Memory_Second = time.Hour * 24 * 365
)

Functions

func LoadOneCache

func LoadOneCache()

初始化加载缓存

func MemoryDel

func MemoryDel(key string) error

删除 缓存

func MemoryFields

func MemoryFields() []string

所有键名

func MemoryGet

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

获取 缓存

func MemorySet

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

设置 缓存

func MemoryUpdateByCache

func MemoryUpdateByCache(fields []string, memoryCacheTime map[string]int)

从cahce,更新指定缓存到内存中

Types

This section is empty.

Jump to

Keyboard shortcuts

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