Skip to content
masterclass Buddy

Redis · Command

SPOP

SPOP removes and returns one or more random members from a Redis set. It can remove one member or up to a requested count.

Last updated

Since
1.0.0

Syntax

SPOP key [count]

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

Subscribe
  • SRANDMEMBER
  • SADD
  • SMEMBERS
  • SREM

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