SDIFF
Syntax
SDIFF key [key...]
Module
setCategories
read set slowDescription
Returns the difference between all the sets in the given keys.
Examples
- Go (Embedded)
- CLI
Get the difference between 2 sets:
db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
elements, err := db.SDiff("key1", "key2")
Get the difference between 2 sets:
> SDIFF key1 key2