Documentation ¶
Index ¶
- Variables
- func GobDecode(data []byte, to interface{}) error
- func GobEncode(data interface{}) ([]byte, error)
- func NewFreeRegister() cache.Cache
- type Cache
- func (free *Cache) CacheStatus() map[string]interface{}
- func (free *Cache) ClearAll() error
- func (free *Cache) Decr(key string) error
- func (free *Cache) Delete(key string) error
- func (free *Cache) Get(key string) interface{}
- func (free *Cache) GetMulti(keys []string) []interface{}
- func (free *Cache) GetValue(key string, value interface{}) error
- func (free *Cache) Incr(key string) error
- func (free *Cache) IsExist(key string) bool
- func (free *Cache) Put(key string, val interface{}, timeout time.Duration) error
- func (cache *Cache) StartAndGC(config string) error
- func (free *Cache) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultSize = 64 //64M
)
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.