cunla / fakeredis-py

Implementation of Redis in python without having a Redis server running. Fully compatible with using redis-py.
https://fakeredis.moransoftware.ca/
BSD 3-Clause "New" or "Revised" License
281 stars 47 forks source link

fix:xrevrange to work with exclusive ranges #319

Closed hurlenko closed 3 weeks ago

hurlenko commented 3 weeks ago

bisect_right has a bit different behaviour than bisect_left. Also code did not account for exclusive indexes from right

cunla commented 3 weeks ago

Thanks for this contribution!