Documentation ¶
Index ¶
- Variables
- func ConRedis(conf Config)
- func Decr(key string) (int64, error)
- func Del(key string) (bool, error)
- func Expire(key string, ttl int64) (bool, error)
- func Get(key string) (string, error)
- func HDel(hashKey string, key string) (bool, error)
- func HExists(hashKey string, key string) (bool, error)
- func HGet(hashKey string, key string) (string, error)
- func HGetAll(hashKey string) (map[string]string, error)
- func HIncrBy(hashKey string, key string, num int64) (int64, error)
- func HKeys(hashKey string) ([]string, error)
- func HLen(hashKey string) (int64, error)
- func HMGet(hashKey string, keys ...interface{}) (map[string]string, error)
- func HMSet(hashKey string, keyVal ...KeyVal) (string, error)
- func HSet(hashKey string, key string, val interface{}) (bool, error)
- func HVals(hashKey string) ([]string, error)
- func HashFuncTest()
- func Incr(key string) (int64, error)
- func IncrBy(key string, num int64) (int64, error)
- func KeyFuncTest()
- func LIndex(listKey string, i int64) (string, error)
- func LInsert(listKey string, target string, val string) (int64, error)
- func LLen(listKey string) (int64, error)
- func LPop(listKey string) (string, error)
- func LPush(listKey string, val string) (int64, error)
- func LRange(listKey string, start int64, end int64) ([]string, error)
- func LSet(listKey string, index int64, val string) (string, error)
- func ListFuncTest()
- func Lock(key string, ttl ...int64) bool
- func MGet(keys ...interface{}) (map[string]string, error)
- func MSet(keyVal ...KeyVal) (bool, error)
- func RPop(listKey string) (string, error)
- func RPopPush(listKey string, toListKey string) (string, error)
- func RPush(listKey string, val string) (int64, error)
- func SAdd(setKey string, members ...string) (int64, error)
- func SCard(setKey string) (int64, error)
- func SDiff(setKeys ...interface{}) ([]string, error)
- func SInter(setKeys ...interface{}) ([]string, error)
- func SIsMember(setKey string, member string) (bool, error)
- func SMembers(setKey string) ([]string, error)
- func SMove(source string, destination string, member string) (bool, error)
- func SPop(setKey string) (string, error)
- func SRandMember(setKey string, count int64) ([]string, error)
- func SRem(setKey string, members ...string) (int64, error)
- func SUnion(setKeys ...interface{}) ([]string, error)
- func Set(key string, val interface{}) (bool, error)
- func SetEx(key string, val string, ttl int64) (string, error)
- func SetFuncTest()
- func SetNx(key string, val string, ttl ...int64) (bool, error)
- func UnLock(key string) (bool, error)
- func ZAdd(setKey string, members ...SortSet) (int64, error)
- func ZCard(setKey string) (int64, error)
- func ZCount(setKey string, min int64, max int64) (int64, error)
- func ZIncrBy(setKey string, member string, sort int64) (string, error)
- func ZRangeByScoreMap(setKey string, start string, stop string) (map[string]string, error)
- func ZRangeMap(setKey string, start int64, stop int64) (map[string]string, error)
- func ZRank(setKey string, member string) (int64, error)
- func ZRem(setKey string, members ...interface{}) (int64, error)
- func ZRemByRank(setKey string, min int64, max int64) (int64, error)
- func ZRemByScore(setKey string, min int64, max int64) (int64, error)
- func ZRevRank(setKey string, member string) (int64, error)
- func ZScore(setKey string, member string) (string, error)
- type Config
- type KeyVal
- type SortSet
- func ZRange(setKey string, start int64, stop int64) ([]SortSet, error)
- func ZRangeByScore(setKey string, start string, stop string) ([]SortSet, error)
- func ZRevRange(setKey string, start int64, stop int64) ([]SortSet, error)
- func ZRevRangeByScore(setKey string, start string, stop string) ([]SortSet, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *redigo.Pool
Functions ¶
func HashFuncTest ¶
func HashFuncTest()
func KeyFuncTest ¶
func KeyFuncTest()
func ListFuncTest ¶
func ListFuncTest()
func SetFuncTest ¶
func SetFuncTest()
func ZRangeByScoreMap ¶
取值 score 区间 -inf => (开始) +inf => (结束) (666 => (大于666) 666 => (大于等于666) 返回 map
func ZRemByRank ¶
移除有序集合 指定排名区间的成员
func ZRemByScore ¶
移除有序集合 指定分数区间的成员
Types ¶
Click to show internal directories.
Click to hide internal directories.