Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheConfigSt ¶
type CacheItemSt ¶
type CacheItemSt struct { Expire int64 `json:"expire" bson:"expire"` Data interface{} `json:"data" bson:"data"` }
type Cacher ¶
type FactoryFileCache ¶
type FactoryFileCache struct { }
func (*FactoryFileCache) Open ¶
func (factory *FactoryFileCache) Open(params interface{}) Cacher
获取缓存日志配置信息
type FactoryMemoryCache ¶
type FactoryMemoryCache struct { }
func (*FactoryMemoryCache) Open ¶
func (factory *FactoryMemoryCache) Open(params interface{}) Cacher
type FactoryRedisCache ¶
type FactoryRedisCache struct { }
func (*FactoryRedisCache) Open ¶
func (factory *FactoryRedisCache) Open(params interface{}) Cacher
type FileCacheSt ¶
type FileCacheSt struct {
// contains filtered or unexported fields
}
type IFactoryCache ¶
type IFactoryCache interface {
Open(params interface{}) Cacher
}
type MemoryCacheSt ¶
type MemoryCacheSt struct {
// contains filtered or unexported fields
}
func (*MemoryCacheSt) Get ¶
func (self *MemoryCacheSt) Get(key string) interface{}
获取一个缓存记录信息,过期记录不返回
type RedisCacheSt ¶
type RedisCacheSt struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.