Skip to content
masterclass Buddy

Redis · Command

SDIFF

SDIFF returns members in the first set that are absent from all following sets. It reads the sets without changing them.

Last updated

Since
1.0.0

Syntax

SDIFF key [key ...]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • SDIFFCARD
  • SDIFFSTORE
  • SINTER
  • SUNION

Source: SDIFF | Docs. Checked 2026-11-03.