I'm using redis-py and want to use -inf and inf with ZRANGEBYSCORE. I tried to do this using string and float of inf but those return an empty set. How can I do this?
EDIT
I tried doing the following command:
redis.StrictRedis.ZRANGEBYSCORE("SORTEDSET", "-inf", "inf")
or
redis.StrictRedis.ZRANGEBYSCORE("SORTEDSET", float("-inf"), float("inf"))
UPDATE My error was that my abstraction for zrangebyscore was using zrange by mistake...inf works as stated below.
This is my code has been tested: