Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RedisClient ¶
type RedisClient interface { HGet(key, field string) ([]byte, error) HSet(key, field string, value interface{}, expDur time.Duration) error HDel(key, field string) error Del(key string) error Set(key string, value interface{}, expDur time.Duration) error Get(key string) (string, error) SetNX(key string, value string, duration time.Duration) (bool, error) Keys(key string) ([]string, error) }
func NewRedis ¶
func NewRedis(redisClient redis.Cmdable) RedisClient
func Redis ¶
func Redis(config *configs.Configs) RedisClient
Click to show internal directories.
Click to hide internal directories.