MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / SUnionStore

Method SUnionStore

structure/set.go:272–278  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

270// log.Fatal(err)
271// }
272func (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/*
281SInterStore stores the intersection of multiple sets in a destination set.

Callers

nothing calls this directly

Calls 2

SUnionMethod · 0.95
SAddsMethod · 0.95

Tested by

no test coverage detected