Introduction
SADD adds items to a group without duplicates. SREM removes items from that group. This helps keep track of unique members easily.
SADD key member [member ...] SREM key member [member ...]
SADD myset apple banana cherry
SREM myset banana
SADD users online_user1 online_user2
SREM users online_user1
SADD fruits apple banana cherry SREM fruits banana SMEMBERS fruits
SADD myset member1 do?SADD fruits apple banana orangeSREM fruits bananaSMEMBERS fruits return?SREM myset memberX but get no error and the member still appears in SMEMBERS myset. What is the most likely reason?Pass the test and this pattern moves unknown