SINTER
Syntax
SINTER key [key...]
Module
setCategories
read set slowDescription
Returns the intersection of multiple sets.
Examples
- Go (Embedded)
- CLI
Get the difference between 2 sets:
db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
elements, err := db.SInter("key1", "key2")
Get the difference between 2 sets:
> SINTER key1 key2