Documentation ¶
Index ¶
- Variables
- func BatchHashGet(client *redis.Client, key string, fields ...string) map[string]interface{}
- func BatchHashSet(client *redis.Client, key string, fields map[string]interface{}, ...) (string, error)
- func GetAliyunRedisClientPool(db int) *redis.Client
- func GetRedisClientPool(db int) *redis.Client
- func HashGet(client *redis.Client, key, field string) string
- func HashGetAll(client *redis.Client, key string) (map[string]string, error)
- func HashSet(client *redis.Client, key, field string, data interface{})
- func Incr(client *redis.Client, key string) int
- func SetAdd(client *redis.Client, key, val string)
- func SetGet(client *redis.Client, key string) []string
- func XAdd(client *redis.Client, stream string, MaxLen, MaxLenApprox int64, ...) string
Constants ¶
This section is empty.
Variables ¶
View Source
var AliyunRedisDB *redis.Client
View Source
var ImRedisDB *redis.Client
Functions ¶
func BatchHashGet ¶
批量获取key的hash中对应多元素值
func BatchHashSet ¶
func BatchHashSet(client *redis.Client, key string, fields map[string]interface{}, duration time.Duration) (string, error)
批量向key的hash添加对应元素field的值
func GetRedisClientPool ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.