Documentation
¶
Index ¶
- func NewRedisCache() cache.Cache
- type Cache
- func (t *Cache) Decr(key string) error
- func (t *Cache) Delete(key string) error
- func (t *Cache) FlushAll() error
- func (t *Cache) Get(key string, dest interface{}) error
- func (t *Cache) GetMulti(keys []string) []interface{}
- func (t *Cache) Incr(key string) error
- func (t *Cache) IsExist(key string) bool
- func (t *Cache) Set(key string, val interface{}, expire time.Duration) error
- func (t *Cache) StartAndGC(config map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRedisCache ¶
NewRedisCache create new redis cache with default collection name.
Types ¶
Click to show internal directories.
Click to hide internal directories.