You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like the culprit is the __iter__ implementation of _StrKeyDict, which doesn't call self._update_expired_keys() like __getitem__ does. I suppose it should be called before returning the iterator, resulting in keys being expired at the start of each scan call.
If this is indeed a bug and my solution sounds good, I can submit a PR.
The text was updated successfully, but these errors were encountered:
I think your analysis is correct. The implementation has changed quite a bit, but the issue still remains, and could be fixed by overriding keys to filter out expired keys.
I'm not sure if this is the desired functionality, but using
scan
andscan_iter
includes expired keys.Here is how to reproduce (just save to file and run with python3)
Looks like the culprit is the
__iter__
implementation of_StrKeyDict
, which doesn't callself._update_expired_keys()
like__getitem__
does. I suppose it should be called before returning the iterator, resulting in keys being expired at the start of eachscan
call.If this is indeed a bug and my solution sounds good, I can submit a PR.
The text was updated successfully, but these errors were encountered: