SUnionStore calculates and stores the union of multiple sets in a destination set. 'destination' is the name of the set where the result will be stored. 'keys' is a variadic parameter that represents the names of all the sets whose union is to be calculated. The function returns an error if there
(destination string, keys ...string)
| 270 | // log.Fatal(err) |
| 271 | // } |
| 272 | func (s *SetStructure) SUnionStore(destination string, keys ...string) error { |
| 273 | union, err := s.SUnion(keys...) |
| 274 | if err != nil { |
| 275 | return err |
| 276 | } |
| 277 | return s.SAdds(destination, 0, union...) |
| 278 | } |
| 279 | |
| 280 | /* |
| 281 | SInterStore stores the intersection of multiple sets in a destination set. |