Documentation
¶
Index ¶
- type Set
- func (s *Set) GetValue() []string
- func (s *Set) Iter(fn func(member string) bool)
- func (s *Set) SAdd(member ...string) int64
- func (s *Set) SCard() int64
- func (s *Set) SClear()
- func (s *Set) SDiff(sets ...*Set) []string
- func (s *Set) SDiffStore(destination *Set, sets ...*Set)
- func (s *Set) SInter(sets ...*Set) []string
- func (s *Set) SInterStore(destination *Set, sets ...*Set)
- func (s *Set) SIsMember(member string) bool
- func (s *Set) SMembers() []string
- func (s *Set) SPop(count int64) []string
- func (s *Set) SRandMember(count int64) []string
- func (s *Set) SRem(member ...string) int64
- func (s *Set) SScan(cursor int64, match string, count int64) (int64, []string)
- func (s *Set) SUnion(sets ...*Set) []string
- func (s *Set) SUnionStore(destination *Set, sets ...*Set)
- func (s *Set) SetValue(members []string)
- func (s *Set) Type() ds.ValueType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
func (*Set) SDiffStore ¶
SDiffStore gets the difference between sets and stores it in a new set.
func (*Set) SInterStore ¶
SInterStore gets the intersection between sets and stores it in a new set.
func (*Set) SRandMember ¶ added in v1.6.0
SRandMember gets a random member from the set.
func (*Set) SUnionStore ¶
SUnionStore gets the union between sets and stores it in a new set.
Click to show internal directories.
Click to hide internal directories.