Cache

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConstCacheOverTime   int64 = 60 * 10 //10 min
	ConstCacheUpdateTime int64 = 60 * 30 //30 min
)
View Source
const (
	ConstBigWordHost string = "127.0.0.1:31000"
)

Variables

This section is empty.

Functions

func GetTempData

func GetTempData(identify string) (data interface{})

func Init

func Init()

func SetTempData

func SetTempData(identify string, data interface{})

Types

type TCache

type TCache struct {
	// contains filtered or unexported fields
}

func (*TCache) Get

func (this *TCache) Get(key string) interface{}

func (*TCache) Init

func (this *TCache) Init(td int64)

func (*TCache) Remove

func (this *TCache) Remove(key string)

func (*TCache) Run

func (this *TCache) Run()

func (*TCache) Set

func (this *TCache) Set(key string, data interface{})

type TCacheContent

type TCacheContent struct {
	// contains filtered or unexported fields
}

type TCacheMgr

type TCacheMgr struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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