sending hex value over for ZRANGEBYLEX

454 views Asked by At

I am using c# 4.5, with StackExchange.Redis version 1.0.316.0. I need to send follwoing command to reids server to search for all my sorted set that start with aar.

ZRANGEBYLEX IWU [aar "[aar\xff" LIMIT 1 10 

in my c# code i tried

querystring="aar";
 SortedSetRangeByValue("IWU", querystring, querystring + "\xff",
               0, 10);

When i monitor on redis server i see that it did not send what i expected, it sent this instead.

"ZRANGEBYLEX" "IWU" "[aar" "[aar\xc3\xbf" "LIMIT" "0" "10"

How can i fix my c# code to send right hex values over?

1

There are 1 answers

0
Justin Homes On BEST ANSWER

simply using querystring + @"xff" worked for me.