Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Use Case: Sorted Set – Leader Board

Sumit Rawal answered on May 9, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers


Use Case: Sorted Set – Leader Board

0

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 

Popularity 1/10 Helpfulness 1/10 Language whatever
Source: Grepper
Link to this answer
Share Copy Link
Contributed on May 09 2023
Sumit Rawal
0 Answers  Avg Quality 2/10


X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.