Home »
MCQs »
Redis MCQs
Which of the following commands is used to add the element to a set?
26. Which of the following commands is used to add the element to a set?
- ADD
- SADD key member1 [member2]
- SADD KEY
- ADDSET KEY
Answer: B) SADD key member1 [member2]
Explanation:
SADD key member1 [member2] command is used when you want to add an element to a set.