Versions in this module Expand all Collapse all v0 v0.1.0 Oct 26, 2019 Changes in this version + const SKIPLIST_MAXLEVEL + const SKIPLIST_P + type GetByScoreRangeOptions struct + ExcludeEnd bool + ExcludeStart bool + Limit int + type Score int64 + type SortedSet struct + func New() *SortedSet + func (ss *SortedSet) AddOrUpdate(key int, score Score, value interface{}) bool + func (ss *SortedSet) FindRank(key int) int + func (ss *SortedSet) GetByKey(key int) *SortedSetNode + func (ss *SortedSet) GetByRank(rank int, remove bool) *SortedSetNode + func (ss *SortedSet) GetByRankRange(start int, end int, remove bool) []*SortedSetNode + func (ss *SortedSet) GetByScoreRange(start Score, end Score, options *GetByScoreRangeOptions) []*SortedSetNode + func (ss *SortedSet) GetCount() int + func (ss *SortedSet) PeekMax() *SortedSetNode + func (ss *SortedSet) PeekMin() *SortedSetNode + func (ss *SortedSet) PopMax() *SortedSetNode + func (ss *SortedSet) PopMin() *SortedSetNode + func (ss *SortedSet) Remove(key int) *SortedSetNode + type SortedSetLevel struct + type SortedSetNode struct + func (ssn *SortedSetNode) Key() int + func (ssn *SortedSetNode) Score() Score + func (ssn *SortedSetNode) Value() interface{}