Closed Eugeny closed 4 months ago
Upon further investigation this is due to if (not key...) return
in _expireat
, whose __bool__
then checks for bool(self._value)
which is False
because XStream.__len__
is 0
Thanks for reporting this. Do you want to work on a fix and submit a PR (since you already did the hard part)?
Otherwise, I will work on it this weekend;
I'm not actually sure what the purpose of the if not key
check in _expireat
is so I would prefer not to risk breaking anything by not knowing the library, I literally just started using it today :D
No prob, I'll have a look at it later this week. Thanks again for reporting
fixed
Thank you!
STR:
Python 3.10 redis-py==4.5.4 fakeredis==2.23.2
Upvote & Fund