Collection of Sorted
Distinct Entities
• Set Operations and Range
Queries based on Score
value: John
score: 610
value : Jane
score: 987
value : Sarah
score: 1597
value : Maya
score: 144
value : Fred
score: 233
value : Ann
score: 377
Game Scores
➢ ZADD game:1 987 Jane 1597 Sarah 377 Maya 610
John 144 Ann 233 Fred
➢ ZREVRANGE game:1 0 3 WITHSCORES. (Get top 4
Scores)
• Sarah 1597
• Jane 987
• John 610
• Ann 377