Skip to content

[NEW] zrank with score option #11111

@yangbodong22011

Description

@yangbodong22011

The problem/use-case that the feature addresses

Our user wants to return score when querying the ranking through zrank, instead of querying through zscore again.

Currently, we can recommend users to use pipeline to solve this problem (avoid network waits), but I think this scenario should become a built-in feature of Redis, as it is so common.

Possible command formats:

1,

z[rev]rank key member [withscore]

2,

z[rev]rankwithscore key

Why not pipeline

For many clients, using pipeline not only requires accepting a new concept, but also requires adjustment in code, new pipeline class or other.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions