MCPcopy Create free account
hub / github.com/dbProjectRED/redimo.go / ZINTERSTORE

Method ZINTERSTORE

sorted_sets.go:217–224  ·  view source on GitHub ↗
(destinationKey string, sourceKeys []string, aggregation ZAggregation, weights map[string]float64)

Source from the content-addressed store, hash-verified

215}
216
217func (c Client) ZINTERSTORE(destinationKey string, sourceKeys []string, aggregation ZAggregation, weights map[string]float64) (membersWithScores map[string]float64, err error) {
218 set, err := c.ZINTER(sourceKeys, aggregation, weights)
219 if err == nil {
220 _, err = c.ZADD(destinationKey, set, Flags{})
221 }
222
223 return set, err
224}
225
226func (c Client) ZLEXCOUNT(key string, min string, max string) (count int64, err error) {
227 return c.zGeneralCount(key, zLex{min}, zLex{max}, c.sk)

Callers 1

TestZAggregationsFunction · 0.80

Calls 2

ZINTERMethod · 0.95
ZADDMethod · 0.95

Tested by 1

TestZAggregationsFunction · 0.64