Documentation ¶
Overview ¶
*
*Created by Xie Jian on 2019/10/24 16:01
Index ¶
- Variables
- func NewRedisCache() cache.Cache
- type Cache
- func (rc *Cache) ClearAll() error
- func (rc *Cache) Delete(key string) error
- func (rc *Cache) Get(key string) interface{}
- func (rc *Cache) GetMulti(keys []string) []interface{}
- func (rc *Cache) IsExist(key string) bool
- func (rc *Cache) Put(key string, val interface{}, timeout time.Duration) error
- func (rc *Cache) StartCache(config string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultKey = "gotilCacheRedis"
)
Functions ¶
func NewRedisCache ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.