limpyd / redis-limpyd

Provide an easy way to store python objects in Redis, without losing the power and the control of the Redis API
https://redis-limpyd.readthedocs.org/
Do What The F*ck You Want To Public License
72 stars 11 forks source link

Correct and enhance collection slicing #110

Closed twidi closed 6 years ago

twidi commented 7 years ago

Some slicing were not managed at all, retrieving the wrong number of data. It is now corrected, with also more cases where we try to limit the data returned by redis To be sure that the data is always correctly returned, in the tests we compare the result of slicing a collection to the same slicing of a normal python list. Same for indexing (both in __getitem__)

PS: depnds on #109

twidi commented 6 years ago

Auto-reviewed and approved