Documentation ¶
Index ¶
- func Del(key string) error
- func Get(key string) (string, error)
- func GetClient() redis.UniversalClient
- func GetConn() redis.Cmdable
- func HGet(key, childKey string) (string, error)
- func HGetAll(key string) (map[string]string, error)
- func HMGetAll(key string, fields ...string) ([]string, error)
- func HSet(key string, value map[string]interface{}) error
- func HSetEx(key string, value map[string]interface{}, seconds uint) error
- func NewCache(opt *CacheOption) *cache.Cache
- func Set(key string, value interface{}) error
- func SetEx(key string, value interface{}, expiration uint) error
- func Stop()
- type CacheOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCache ¶
func NewCache(opt *CacheOption) *cache.Cache
Types ¶
Click to show internal directories.
Click to hide internal directories.