Documentation ¶
Index ¶
- type Set
- func (s *Set) SAdd(key string, items ...[]byte) error
- func (s *Set) SAreMembers(key string, items ...[]byte) (bool, error)
- func (s *Set) SCard(key string) int
- func (s *Set) SDiff(key1, key2 string) (list [][]byte, err error)
- func (s *Set) SHasKey(key string) bool
- func (s *Set) SInter(key1, key2 string) (list [][]byte, err error)
- func (s *Set) SIsMember(key string, item []byte) bool
- func (s *Set) SMembers(key string) (list [][]byte, err error)
- func (s *Set) SMove(key1, key2 string, item []byte) (bool, error)
- func (s *Set) SPop(key string) []byte
- func (s *Set) SRem(key string, items ...[]byte) error
- func (s *Set) SUnion(key1, key2 string) (list [][]byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Set ¶
Set represents the Set.
func (*Set) SAreMembers ¶
SAreMembers Returns if members are members of the set stored at key. For multiple items it returns true only if all of the items exist.
func (*Set) SCard ¶
SCard Returns the set cardinality (number of elements) of the set stored at key.
func (*Set) SDiff ¶
SDiff Returns the members of the set resulting from the difference between the first set and all the successive sets.
func (*Set) SInter ¶
SInter Returns the members of the set resulting from the intersection of all the given sets.
func (*Set) SPop ¶
SPop removes and returns one or more random elements from the set value store at key.
Click to show internal directories.
Click to hide internal directories.