Versions in this module Expand all Collapse all v1 v1.2.10 Aug 26, 2024 Changes in this version + type Border interface + func ParseLexBorder(s string) (Border, error) + func ParseScoreBorder(s string) (Border, error) + type Element struct + Member string + Score float64 + type Level struct + type LexBorder struct + Exclude bool + Inf int8 + Value string + type ScoreBorder struct + Exclude bool + Inf int8 + Value float64 + type SortedSet struct + func Make() *SortedSet + func (sortedSet *SortedSet) Add(member string, score float64) bool + func (sortedSet *SortedSet) ForEach(min Border, max Border, offset int64, limit int64, desc bool, ...) + func (sortedSet *SortedSet) ForEachByRank(start int64, stop int64, desc bool, consumer func(element *Element) bool) + func (sortedSet *SortedSet) Get(member string) (element *Element, ok bool) + func (sortedSet *SortedSet) GetRank(member string, desc bool) (rank int64) + func (sortedSet *SortedSet) Len() int64 + func (sortedSet *SortedSet) PopMin(count int) []*Element + func (sortedSet *SortedSet) Range(min Border, max Border, offset int64, limit int64, desc bool) []*Element + func (sortedSet *SortedSet) RangeByRank(start int64, stop int64, desc bool) []*Element + func (sortedSet *SortedSet) RangeCount(min Border, max Border) int64 + func (sortedSet *SortedSet) Remove(member string) bool + func (sortedSet *SortedSet) RemoveByRank(start int64, stop int64) int64 + func (sortedSet *SortedSet) RemoveRange(min Border, max Border) int64 + func (sortedSet *SortedSet) ZSetScan(cursor int, count int, pattern string) ([][]byte, int)