Home »
MCQs »
Redis MCQs
Suppose you are asked to intersect multiple sets and store the resulting set in a key, in this situation which of the following commands will you use?
27. Suppose you are asked to intersect multiple sets and store the resulting set in a key, in this situation which of the following commands will you use?
- INTERSECTSTORE destination key1 [key2]
- SINTERSECT destination key1 [key2]
- SINTERSTORE destination key1 [key2]
- SSTOREINTER destination key1 [key2]
Answer: C) SINTERSTORE destination key1 [key2]
Explanation:
SINTERSTORE destination key1 [key2] is the command you will use in a situation where you are asked to intersect multiple sets and store the resulting set in a key.