Documentation
¶
Index ¶
- func Commands() []internal.Command
- type MemberObject
- type MemberParam
- type Score
- type SortedSet
- func (set *SortedSet) AddOrUpdate(members []MemberParam, updatePolicy interface{}, comparison interface{}, ...) (int, error)
- func (set *SortedSet) Cardinality() int
- func (set *SortedSet) Contains(m Value) bool
- func (set *SortedSet) Get(v Value) MemberObject
- func (set *SortedSet) GetAll() []MemberParam
- func (s *SortedSet) GetMem() int64
- func (set *SortedSet) GetRandom(count int) []MemberParam
- func (set *SortedSet) Pop(count int, policy string) (*SortedSet, error)
- func (set *SortedSet) Remove(v Value) bool
- func (set *SortedSet) Subtract(others []*SortedSet) *SortedSet
- type SortedSetParam
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MemberObject ¶
MemberObject is the shape of the object as it's stored in the map that represents the Set
type MemberParam ¶
MemberParam is the shape of the object passed as a parameter to NewSortedSet and the Add method
type SortedSet ¶
type SortedSet struct {
// contains filtered or unexported fields
}
func Intersect ¶
func Intersect(aggregate string, setParams ...SortedSetParam) *SortedSet
Intersect uses divide & conquer to calculate the intersection of multiple sets
func NewSortedSet ¶
func NewSortedSet(members []MemberParam) *SortedSet
func Union ¶
func Union(aggregate string, setParams ...SortedSetParam) *SortedSet
Union uses divided & conquer to calculate the union of multiple sets
func (*SortedSet) AddOrUpdate ¶
func (set *SortedSet) AddOrUpdate( members []MemberParam, updatePolicy interface{}, comparison interface{}, changed interface{}, incr interface{}, ) (int, error)
func (*SortedSet) Cardinality ¶
func (*SortedSet) Get ¶
func (set *SortedSet) Get(v Value) MemberObject
func (*SortedSet) GetAll ¶
func (set *SortedSet) GetAll() []MemberParam
func (*SortedSet) GetRandom ¶
func (set *SortedSet) GetRandom(count int) []MemberParam
type SortedSetParam ¶
SortedSetParam is a composite object used for Intersect and Union function
Click to show internal directories.
Click to hide internal directories.