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

Method SUNIONSTORE

sets.go:318–325  ·  view source on GitHub ↗
(destinationKey string, sourceKeys ...string)

Source from the content-addressed store, hash-verified

316}
317
318func (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}

Callers 1

TestSetOperationsFunction · 0.80

Calls 2

SUNIONMethod · 0.95
SADDMethod · 0.95

Tested by 1

TestSetOperationsFunction · 0.64