Documentation ¶
Index ¶
- type Item
- type Level
- type SortedSet
- func (sortedSet *SortedSet) GetType() ds.DataType
- func (sortedSet *SortedSet) MarshalBinary() ([]byte, error)
- func (sortedSet *SortedSet) UnmarshalBinary(data []byte) error
- func (sortedSet *SortedSet) ZAdd(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) 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) ZScore(member string) float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SortedSet ¶
SortedSet is a set which keys sorted by bound score
func (*SortedSet) MarshalBinary ¶ added in v1.0.8
func (*SortedSet) UnmarshalBinary ¶ added in v1.0.8
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) 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