SREM key member [member ...]
- Available since:
- Time complexity:
- O(N) where N is the number of members to be removed.
- ACL categories:
Remove the specified members from the set stored at
Specified members that are not a member of this set are ignored.
key does not exist, it is treated as an empty set and this command returns
An error is returned when the value stored at
key is not a set.
Integer reply: the number of members that were removed from the set, not including non existing members.
- Starting with Redis version 2.4.0: Accepts multiple