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
299 stars 49 forks source link

fix:xrevrange to work with exclusive ranges #319

Closed hurlenko closed 3 months ago

hurlenko commented 3 months ago

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

cunla commented 3 months ago

Thanks for this contribution!