microsoft / garnet

Garnet is a remote cache-store from Microsoft Research that offers strong performance (throughput and latency), scalability, storage, recovery, cluster sharding, key migration, and replication features. Garnet can work with existing Redis clients.
https://microsoft.github.io/garnet/
MIT License
9.71k stars 460 forks source link

Support WITHSCORE option in ZRANK, ZREVRANK commands #419

Closed yrajas closed 1 month ago

yrajas commented 1 month ago

Problem Currently, processing accepts the WITHSCORE parameter to ZRANK and ZREVRANK commands, but the result is not built with the score if the parameter is passed in.

Fix Modified the ZRANK, ZREVRANK implementation to have the ability to provide either a single rank integer output or an array output based on presence of WITHSCORE parameter.