Documentation ¶
Index ¶
Constants ¶
View Source
const Cache_expire_time = 30 * time.Minute
Variables ¶
View Source
var FileCache = NewFileCache()
Functions ¶
This section is empty.
Types ¶
type FuncFileCache ¶
type FuncFileCache struct { Pkey string ExpireTime time.Duration // contains filtered or unexported fields }
func NewFileCache ¶
func NewFileCache() *FuncFileCache
func NewFunFileCache ¶
func NewFunFileCache(pkey string) *FuncFileCache
func (*FuncFileCache) Get ¶
func (this *FuncFileCache) Get(k string) (interface{}, bool)
func (*FuncFileCache) Set ¶
func (this *FuncFileCache) Set(k string, x interface{})
type IchubCache ¶
type IchubCache struct { Pkey string ExpireTime time.Duration // contains filtered or unexported fields }
func NewCache ¶
func NewCache() *IchubCache
func NewIchubCache ¶
func NewIchubCache(Pkey string) *IchubCache
func (*IchubCache) Get ¶
func (this *IchubCache) Get(k string) (interface{}, bool)
Click to show internal directories.
Click to hide internal directories.