Skip to main content

SINTERSTORE

Syntax

SINTERSTORE destination key [key...]

Module

set

Categories

set slow write

Description

Stores the intersection of multiple sets at the destination key.

Examples

Get the difference between 2 sets:

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