Skip to content
masterclass Buddy

Redis · Command

SADD

SADD adds one or more unique members to a Redis set. It creates the set if needed and returns the number of newly added members.

Last updated

Since
1.0.0

Syntax

SADD key member [member ...]

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

Subscribe
  • SMEMBERS
  • SISMEMBER
  • SREM
  • SPOP
  • SRANDMEMBER
  • SINTER
  • SDIFF

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