cache

package
v0.0.0-...-ecb1187 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear() bool

func Del

func Del(key string) bool

func ESet

func ESet(key string, value interface{}, ExpireAt int64) bool

func Get

func Get(key string) interface{}

func GetAll

func GetAll() map[string]*CacheItem

func LoadLocal

func LoadLocal(path string) bool

读取持久化缓存文件

func Set

func Set(key string, value interface{}, ttl int64) bool

func StoreLocal

func StoreLocal(path string) bool

写入持久化缓存文件

func TTL

func TTL(key string) int64

Types

type CacheItem

type CacheItem struct {
	Value    interface{}
	ExpireAt int64
}

Jump to

Keyboard shortcuts

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