Documentation ¶
Overview ¶
单进程高速缓存.
Index ¶
- func BatchRemove(keys []string)
- func BatchSet(data map[string]interface{}, expire int64)
- func Get(key string) interface{}
- func Keys() []string
- func Lock(key string, expire int64) bool
- func Remove(key string)
- func Set(key string, value interface{}, expire int64)
- func SetCap(cap int)
- func Size() int
- func Unlock(key string)
- func Values() []interface{}
- type Cache
- func (c *Cache) BatchRemove(keys []string)
- func (c *Cache) BatchSet(data map[string]interface{}, expire int64)
- func (c *Cache) Close()
- func (c *Cache) Get(key string) interface{}
- func (c *Cache) Keys() []string
- func (c *Cache) Lock(key string, expire int64) bool
- func (c *Cache) Remove(key string)
- func (c *Cache) Set(key string, value interface{}, expire int64)
- func (c *Cache) SetCap(cap int)
- func (c *Cache) Size() int
- func (c *Cache) Unlock(key string)
- func (c *Cache) Values() []interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.