Redis · Command
SREM
SREM removes one or more members from a Redis set. It reports how many existing members it removed and deletes the key when the set becomes empty.
Last updated
- Since
- 1.0.0
Syntax
SREM key member [member ...]In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
SADDSCARDSISMEMBERSMEMBERSSMOVESPOPSRANDMEMBERSSCAN