Documentation ¶
Index ¶
- type Item
- type Level
- type SortedSet
- func (sortedSet *SortedSet) GetValue() []*pb.KeyScore
- func (sortedSet *SortedSet) SetValue(keyScores []*pb.KeyScore)
- func (sortedSet *SortedSet) Type() ds.DataType
- func (sortedSet *SortedSet) ZAdd(member string, score float64) bool
- func (sortedSet *SortedSet) ZAddGT(member string, score float64) bool
- func (sortedSet *SortedSet) ZAddLT(member string, score float64) bool
- func (sortedSet *SortedSet) ZAddNX(member string, score float64) bool
- func (sortedSet *SortedSet) ZAddXX(member string, score float64) bool
- func (sortedSet *SortedSet) ZCard() int64
- func (sortedSet *SortedSet) ZCount(min float64, max float64) int64
- func (sortedSet *SortedSet) ZExists(member string) bool
- func (sortedSet *SortedSet) ZIncrBy(member string, score float64) float64
- func (sortedSet *SortedSet) ZRange(start int64, stop int64) []*Item
- func (sortedSet *SortedSet) ZRangeByScore(min float64, max float64) []*Item
- func (sortedSet *SortedSet) ZRank(member string) int64
- func (sortedSet *SortedSet) ZRankWithScore(member string) (int64, *Item)
- func (sortedSet *SortedSet) ZRem(member string) bool
- func (sortedSet *SortedSet) ZRemRangeByRank(start int64, stop int64) int64
- func (sortedSet *SortedSet) ZRemRangeByScore(min float64, max float64) int64
- func (sortedSet *SortedSet) ZRevRange(start int64, stop int64) []*Item
- func (sortedSet *SortedSet) ZRevRangeByScore(min float64, max float64) []*Item
- func (sortedSet *SortedSet) ZRevRank(member string) int64
- func (sortedSet *SortedSet) ZRevRankWithScore(member string) (int64, *Item)
- func (sortedSet *SortedSet) ZScore(member string) float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SortedSet ¶
type SortedSet struct {
// contains filtered or unexported fields
}
SortedSet is a set which keys sorted by bound score
func (*SortedSet) ZAddGT ¶ added in v1.5.0
ZAddGT add member if score greater than the current score
func (*SortedSet) ZAddNX ¶ added in v1.5.0
ZAddNX Only add new elements. Don't update already existing elements.
func (*SortedSet) ZAddXX ¶ added in v1.5.0
ZAddXX Only update elements that already exist. Don't add new elements.
func (*SortedSet) ZCount ¶
ZCount returns the number of members which score or member within the given border
func (*SortedSet) ZRange ¶
ZRange returns members which rank within [start, stop), sort by ascending order, rank starts from 0
func (*SortedSet) ZRangeByScore ¶
ZRangeByScore returns members which score or member within the given border
func (*SortedSet) ZRank ¶
ZRank returns the rank of the given member, sort by ascending order, rank starts from 0
func (*SortedSet) ZRankWithScore ¶ added in v1.5.0
ZRankWithScore returns the rank of the given member, sort by ascending order, rank starts from 0
func (*SortedSet) ZRemRangeByRank ¶
ZRemRangeByRank removes member ranking within [start, stop) sort by ascending order and rank starts from 0
func (*SortedSet) ZRemRangeByScore ¶
ZRemRangeByScore removes members which score or member within the given border
func (*SortedSet) ZRevRange ¶
ZRevRange returns members which rank within [start, stop), sort by descending order, rank starts from 0
func (*SortedSet) ZRevRangeByScore ¶
ZRevRangeByScore returns members which score or member within the given border
func (*SortedSet) ZRevRank ¶
ZRevRank returns the rank of the given member, sort by descending order, rank starts from 0
func (*SortedSet) ZRevRankWithScore ¶ added in v1.5.0
ZRevRankWithScore returns the rank of the given member, sort by descending order, rank starts from 0