SUNIONSTORE
Syntax
SUNIONSTORE destination key [key...]
Module
setCategories
set slow writeDescription
Stores the union of the given sets into destination.
Examples
- Go (Embedded)
- CLI
Stores the union of the given sets into destination:
db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
cardinality, err := db.SUnionStore("destination", "key1", "key2")
Stores the union of the given sets into destination:
> SUNIONSTORE destination key1 key2