Documentation ¶
Index ¶
- type ListQuery
- type Query
- type StringQuery
- type ZSetQuery
- func (this *ZSetQuery) ZAddExpire(key string, members []redis.Z, expire time.Duration) (int64, error)
- func (this *ZSetQuery) ZAddExpireIfExist(key string, members []redis.Z, expire time.Duration) (int64, error)
- func (this *ZSetQuery) ZCardIfExist(key string) (int64, error)
- func (this *ZSetQuery) ZIsMemberIfExist(key string, member string) (bool, error)
- func (this *ZSetQuery) ZRangeByScoreIfExist(key string, opt redis.ZRangeBy) ([]string, error)
- func (this *ZSetQuery) ZRangeIfExist(key string, start, stop int64) ([]string, error)
- func (this *ZSetQuery) ZRangeWithScoresIfExist(key string, start, stop int64) ([]redis.Z, error)
- func (this *ZSetQuery) ZRevRangeByScoreIfExist(key string, opt redis.ZRangeBy) ([]string, error)
- func (this *ZSetQuery) ZRevRangeIfExist(key string, start, stop int64) ([]string, error)
- func (this *ZSetQuery) ZRevRangeWithScoresIfExist(key string, start, stop int64) ([]redis.Z, error)
- func (this *ZSetQuery) ZScoreIfExist(key string, member string) (float64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StringQuery ¶
type StringQuery struct {
*Query
}
func NewStringQuery ¶
func NewStringQuery(q *Query) *StringQuery
func (*StringQuery) IncrByIfExist ¶
func (r *StringQuery) IncrByIfExist(key string, incr int64) (int64, error)
type ZSetQuery ¶
type ZSetQuery struct {
*Query
}
func NewZSetQuery ¶
func (*ZSetQuery) ZAddExpire ¶
func (this *ZSetQuery) ZAddExpire(key string, members []redis.Z, expire time.Duration) (int64, error)
使用pipline实现的带过期时间的ZAdd
func (*ZSetQuery) ZAddExpireIfExist ¶
func (this *ZSetQuery) ZAddExpireIfExist(key string, members []redis.Z, expire time.Duration) (int64, error)
使用pipline实现的带过期时间的ZAdd(仅当key存在时添加)
func (*ZSetQuery) ZCardIfExist ¶
使用Pipline实现的优先检查存在性的ZCard
func (*ZSetQuery) ZIsMemberIfExist ¶
判定Key是否存在,如果存在则检查member是否在集合中
func (*ZSetQuery) ZRangeByScoreIfExist ¶
func (*ZSetQuery) ZRangeIfExist ¶
判定Key是否存在,如果存在则返回指定排序区间的成员(正序)
func (*ZSetQuery) ZRangeWithScoresIfExist ¶
func (*ZSetQuery) ZRevRangeByScoreIfExist ¶
func (*ZSetQuery) ZRevRangeIfExist ¶
判定Key是否存在,如果存在则返回指定排序区间的成员(逆序)
func (*ZSetQuery) ZRevRangeWithScoresIfExist ¶
Click to show internal directories.
Click to hide internal directories.