(destinationKey string, sourceKeys []string, aggregation ZAggregation, weights map[string]float64)
| 490 | } |
| 491 | |
| 492 | func (c Client) ZUNIONSTORE(destinationKey string, sourceKeys []string, aggregation ZAggregation, weights map[string]float64) (membersWithScores map[string]float64, err error) { |
| 493 | set, err := c.ZUNION(sourceKeys, aggregation, weights) |
| 494 | if err == nil { |
| 495 | _, err = c.ZADD(destinationKey, set, Flags{}) |
| 496 | } |
| 497 | |
| 498 | return set, err |
| 499 | } |
| 500 | |
| 501 | func zGetWeight(weights map[string]float64, key string) float64 { |
| 502 | if weights == nil { |