Documentation ¶
Index ¶
- Variables
- func NewFreeCache() icache.ICache
- type FreeCache
- func (free *FreeCache) CacheStatus() map[string]interface{}
- func (free *FreeCache) ClearAll() error
- func (free *FreeCache) Decr(key string) error
- func (free *FreeCache) Delete(key string) error
- func (free *FreeCache) Get(key string, value interface{}) error
- func (free *FreeCache) GetMulti(keys []string, values []interface{}) error
- func (free *FreeCache) Incr(key string) error
- func (free *FreeCache) IsExist(key string) (bool, error)
- func (free *FreeCache) Put(key string, val interface{}, timeout time.Duration) error
- func (cache *FreeCache) StartAndGC(config string) error
- func (free *FreeCache) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultSize = 64 //64M
)
Functions ¶
func NewFreeCache ¶
Types ¶
type FreeCache ¶
func (*FreeCache) CacheStatus ¶
获取cache状态
func (*FreeCache) StartAndGC ¶
在beego框架中,注册时会自动执行该函数初始化
Click to show internal directories.
Click to hide internal directories.