Skip to main content

SDIFF

Syntax

SDIFF key [key...]

Module

set

Categories

read set slow

Description

Returns the difference between all the sets in the given keys.

Examples

Get the difference between 2 sets:

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