SDIFFSTORE
Syntax
SDIFFSTORE destination key [key...]
Module
setCategories
set slow writeDescription
Works the same as SDIFF but stores the result at 'destination'.
Examples
- Go (Embedded)
- CLI
Store the difference between 2 sets:
db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
cardinality, err := db.SDiffStore("destination", "key1", "key2")
Store the difference between 2 sets:
> SDIFFSTORE destination key1 key2