Medium-EasyUnderstandCachingMultiple Choice
Which Redis data structure is best for implementing a real-time leaderboard?
Understand — Tests comprehension and ability to explain concepts.
Answer Options
AString
BHash
CSorted Set (ZSet)
DList
Want to see the correct answer?
Get the answer with a detailed explanation, plus practice 20+ more Caching questions with adaptive quizzes and timed interviews.
See the Answer on Guru Sishya →This question is from the Caching topic (System Design).
More Caching Questions
Which caching pattern checks the cache first, then the database on miss, then populates the cache?
EasyWrite-through caching always writes to both cache and database simultaneously.
EasyWhat is a cache stampede?
Medium-EasyExplain negative caching and when to use it.
Medium-EasyYour Redis cache has 1GB memory limit. What eviction policy would you choose for a web session store where you want to keep recent sessions?
Medium