Skip to main content

SDIFFSTORE

Syntax

SDIFFSTORE destination key [key...]

Module

set

Categories

set slow write

Description

Works the same as SDIFF but stores the result at 'destination'.

Examples

Store the difference between 2 sets:

db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
cardinality, err := db.SDiffStore("destination", "key1", "key2")