SIsMember checks if a member exists in a set
(key, member string)
| 119 | |
| 120 | // SIsMember checks if a member exists in a set |
| 121 | func (s *SetStructure) SIsMember(key, member string) (bool, error) { |
| 122 | fs, err := s.checkAndGetSet(key, false) |
| 123 | if err != nil { |
| 124 | return false, err |
| 125 | } |
| 126 | |
| 127 | return fs.exists(member), nil |
| 128 | } |
| 129 | |
| 130 | // SUnion gets the union of multiple sets |
| 131 | func (s *SetStructure) SUnion(keys ...string) ([]string, error) { |
nothing calls this directly
no test coverage detected