Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support of ZRANGE command #182

Closed
alex6058 opened this issue Apr 15, 2021 · 2 comments · Fixed by #227
Closed

Support of ZRANGE command #182

alex6058 opened this issue Apr 15, 2021 · 2 comments · Fixed by #227
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@alex6058
Copy link

alex6058 commented Apr 15, 2021

Introduce new command ZRANGE in the Redis commands category

Command parameters:
key
selectby (options: BYINDEX|BYSCORE|BYLEX BYINDEX is default)
reverse order checkbox
min (default values: 0 for BYINDEX, -inf for BYSCORE, - for BYLEX)
max (default values: -1 for BYINDEX, +inf for BYSCORE, + for BYLEX)
WITHSCORES mandatory on

The expected output of the command with WITHSCORES flag is

>> zrange test:zset 0 -1 withscores

1) "member1"
2) "10"
3) "member2"
4) "12"
5) "member3"
6) "14"
7) "member4"
8) "15"

This output to be parsed same way as HGETALL output to be able to be used in Bar gauge, Stat, Table and other compatible Grafana panels

@mikhail-vl mikhail-vl added the enhancement New feature or request label May 8, 2021
@mikhail-vl mikhail-vl added this to the Version 1.4.1 milestone May 8, 2021
@mikhail-vl mikhail-vl self-assigned this May 8, 2021
@DeoLeung
Copy link

DeoLeung commented Nov 1, 2021

is there a way that I can manually format the universal input result as table before it's predefined?

@mikhail-vl
Copy link
Contributor

@alex6058 @DeoLeung ZRANGE implemented and will be released in version 2.0 this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants