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
I think it makes more sense to exclude expired keys here and it won't cause much overhead just to check if the item expires. If so, I have some time to make the change.
The text was updated successfully, but these errors were encountered:
I believe most data/status retrieval methods include expired keys (i.e., Len(), Keys(), Range(), Has()), so we should probably update all of them. Using item.isExpiredUnsafe() in them, just like you did in your latest PR, should be enough.
If you can tackle this issue, feel free to do that, I'll review your PRs ASAP.
I noticed the
Has
method will printtrue
when checking an expired keyoutput:
I think it makes more sense to exclude expired keys here and it won't cause much overhead just to check if the item expires. If so, I have some time to make the change.
The text was updated successfully, but these errors were encountered: