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:

vault, err := echovault.NewEchoVault()
if err != nil {
log.Fatal(err)
}
cardinality, err := vault.SInterStore("destination", "key1", "key2")