SUNION
Syntax
SUNION key [key...]
Module
setCategories
set slow readDescription
Returns the members of the set resulting from the union of the provided sets.
Examples
- Go (Embedded)
- CLI
Return the members of the set resulting from the union of the provided sets:
db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
elements, err := db.SUnion("key1", "key2")
Return the members of the set resulting from the union of the provided sets:
> SUNION key1 key2