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.
SubscribeRelated
SRANDMEMBERSADDSMEMBERSSREM