StackExchange/StackExchange.Redis

SortedSetRank doesn't include the score

scm466 opened this issue · 1 comments

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.

History
Starting with Redis version 7.2.0: Added the optional WITHSCORE argument.

That's the "why"; it is new, and hasn't been updated yet.