Skip to main content

SUNIONSTORE

Syntax

SUNIONSTORE destination key [key...]

Module

set

Categories

set slow write

Description

Stores the union of the given sets into destination.

Examples

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