(destinationKey string, sourceKeys ...string)
| 316 | } |
| 317 | |
| 318 | func (c Client) SUNIONSTORE(destinationKey string, sourceKeys ...string) (count int64, err error) { |
| 319 | members, err := c.SUNION(sourceKeys...) |
| 320 | if err == nil { |
| 321 | _, err = c.SADD(destinationKey, members...) |
| 322 | } |
| 323 | |
| 324 | return int64(len(members)), err |
| 325 | } |