Skip to content
masterclass Buddy

Redis · Command

SCARD

SCARD returns the number of members in a Redis set. It returns 0 when the key does not exist.

Last updated

Since
1.0.0

Syntax

SCARD key

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

Subscribe
  • SADD
  • SMEMBERS
  • SISMEMBER
  • SCARD

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