Skip to content
masterclass Buddy

Redis · Concept

Set

Redis sets are unordered collections of unique strings. They support fast membership checks and set operations such as intersection, union, and difference.

Last updated

Syntax

SADD key member [member ...]
SISMEMBER key member
SMISMEMBER key member [member ...]
SCARD key
SMEMBERS key
SINTER key [key ...]
SUNION key [key ...]
SDIFF key [key ...]

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

Subscribe
  • SADD
  • SREM
  • SISMEMBER
  • SMISMEMBER
  • SCARD
  • SMEMBERS
  • SINTER
  • SUNION

Source: Redis sets. Checked 2026-11-03.