Redis Data Types Cheat Sheet/Remove members from a set

Remove members from a set.

Section: Sets

Remove members from a set

bash
bash
SREM tags:post:1 cache

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Sets
Add members to a set
Insert unique set members.
OpenIn sheetbashsame section
List all members
Return every member of a set.
OpenIn sheetbashsame section
Get set size
Return the number of unique members.
OpenIn sheetbashsame section
Check membership
Return whether a member exists in the set.
OpenIn sheetbashsame section
Check multiple memberships
Test several possible members at once.
OpenIn sheetbashsame section
Pop random members
Remove and return random set members.
OpenIn sheetbashsame section