127.0.0.1:6379> ts.range 1s:UBPpK:c - +
1) 1) (integer) 1595253343000
2) "20.545000000000002"
2) 1) (integer) 1595253378000
2) "20.495000000000001"
3) 1) (integer) 1595258359000
2) "20.5199"
4) 1) (integer) 1595339163000
2) "21.2499"
5) 1) (integer) 1595348755000
2) "20.566800000000001"
6) 1) (integer) 1595352386000
2) "20.550000000000001"
127.0.0.1:6379> ts.revrange 1s:UBPpK:c - +
1) 1) (integer) 1595430993000
2) "20.100000000000001"
2) 1) (integer) 1595352386000
2) "20.550000000000001"
3) 1) (integer) 1595348755000
2) "20.566800000000001"
4) 1) (integer) 1595339163000
2) "21.2499"
5) 1) (integer) 1595258359000
2) "20.5199"
Is this not normal or is there something I am not understanding about the reverse commands? Isn’t it supposed to give me the same result as the range command but reversed? The reason I am even thinking about using reverse commands is that the COUNT parameter returns the first N items rather than the last N items. I’m kinda surprised me that there is a parameter for returning the Last N items, it would see a lot more use than the COUNT one (in my opinion).
Cheers