Skip to main content

SUNION

Syntax​

SUNION key [key...]

Module​

set

Categories​

set slow read

Description​

Returns the members of the set resulting from the union of the provided sets.

Examples​

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")