Documentation ¶
Index ¶
- func Append(key, value string) (int64, error)
- func Dec(key string, v ...int64) (result int64, err error)
- func Del(keys ...string) (int64, error)
- func Exists(keys ...string) (int64, error)
- func Expire(key string, exp int64) (bool, error)
- func ExpireAt(key string, tm time.Time) (bool, error)
- func Get[t any](key string) (*t, error)
- func GetRange(key string, start, end int64) (string, error)
- func GetString(key string) (string, error)
- func HDel(key string, fields ...string) (int64, error)
- func HExists(key, field string) (bool, error)
- func HGet(key, field string) (string, error)
- func HGetAll(key string) (map[string]string, error)
- func HLen(key string) (int64, error)
- func HMSet(key string, values ...any) (bool, error)
- func HSet(key string, values ...any) (int64, error)
- func Inc(key string, v ...int64) (result int64, err error)
- func Keys(pattern string) ([]string, error)
- func LIndex(key string, index int64) (string, error)
- func LInsert(key, op string, pivot, value any) (int64, error)
- func LLen(key string) (int64, error)
- func LPop(key string) (string, error)
- func LPush(key string, values ...any) (int64, error)
- func LRange(key string, start, stop int64) ([]string, error)
- func LRem(key string, count int64, value any) (int64, error)
- func LSet(key string, index int64, value any) error
- func NewClient() *redis.Client
- func PTTL(key string) (time.Duration, error)
- func RPop(key string) (string, error)
- func RPush(key string, values ...any) (int64, error)
- func SAdd(key string, members ...any) (int64, error)
- func SCard(key string) (int64, error)
- func SDiff(keys ...string) ([]string, error)
- func SInter(keys ...string) ([]string, error)
- func SIsMember(key string, member any) (bool, error)
- func SMembers(key string) ([]string, error)
- func SPop(key string) (string, error)
- func SPopN(key string, count int64) ([]string, error)
- func SRandMember(key string) (string, error)
- func SRandMemberN(key string, count int64) ([]string, error)
- func SRem(key string, members ...any) (int64, error)
- func SUnion(keys ...string) ([]string, error)
- func Set(key string, val any, expiration ...int64) error
- func StrLen(key string) (int64, error)
- func TTL(key string) (time.Duration, error)
- func Type(key string) (string, error)
- func ZAdd(key string, members ...Z) (int64, error)
- func ZCard(key string) (int64, error)
- func ZCount(key, min, max string) (int64, error)
- func ZIncrBy(key string, increment float64, member string) (float64, error)
- func ZRange(key string, startStop ...int64) ([]string, error)
- func ZRangeByScore(key string, opt *ZRangeBy) ([]string, error)
- func ZRank(key, member string) (int64, error)
- func ZRem(key string, members ...any) (int64, error)
- func ZRemRangeByRank(key string, start, stop int64) (int64, error)
- func ZRemRangeByScore(key, start, stop string) (int64, error)
- func ZRevRange(key string, startStop ...int64) ([]string, error)
- func ZRevRangeByScore(key string, opt *ZRangeBy) ([]string, error)
- func ZRevRank(key, member string) (int64, error)
- func ZScore(key, member string) (float64, error)
- type Z
- type ZRangeBy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ZRangeByScore ¶
获取score过滤后排序的数据段,升序
func ZRevRangeByScore ¶
获取score过滤后排序的数据段,降序
Types ¶
Click to show internal directories.
Click to hide internal directories.