StackExchange / StackExchange/StackExchange.Redis
SortedSetRank doesn't include the score
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 6.2k
- Forks
- 1.6k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 43
Description
Hi, perhaps I'm missing something but it looks as though SortedSetRank/SortedSetRankAsync does not provide an option for including the score as part of the response.
This is possible with the ZRANK command and the 'WITHSCORE' parameter (see docs) is there a reason this option isn't available despite the client using the same Redis command under the hood?
Currently this means I'm having to issue multiple commands to Redis, one to find the rank and another to find the score which isn't great.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the SortedSetRank and SortedSetRankAsync API implementations and compare their command handling with the Redis ZRANK documentation linked in the issue. Confirm how a score-bearing response should be represented and add coverage for the requested option; done means callers can obtain rank and score without issuing separate commands.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, redis
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100