miniredis icon indicating copy to clipboard operation
miniredis copied to clipboard

SORT command not supported

Open amansardana opened this issue 7 years ago • 5 comments

Hi, I am trying to write unit tests for our system using miniredis. Our system utilises SORT command of redis extensively. But miniredis doesn't support SORT command yet. I would like to request the addition of SORT command support in the library. Regards

amansardana avatar Aug 16 '18 09:08 amansardana

Thank you for your report! I have no idea how I missed the SORT command, and it should indeed be added. On which datatypes do you use the command? list or sets?

alicebob avatar Aug 16 '18 10:08 alicebob

I use the SORT primarily with sets. Just now i noticed that ZREVRANGEBYLEX command is also missing support.

amansardana avatar Aug 16 '18 11:08 amansardana

ok. At least that one is relatively new :)

alicebob avatar Aug 16 '18 11:08 alicebob

is this not supported yet?

jpatino-godaddy avatar Jun 08 '23 20:06 jpatino-godaddy

SORT is one of these messy commands with a ton of options and special cases. If someone makes a PR I'm happy to merge it :)

alicebob avatar Jun 13 '23 19:06 alicebob