Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix ExpiringCache.__len__ to be accurate #3956
It used to try and produce an estimate, which was sometimes negative. This caused metrics to be sad, so lets always just calculate it from scratch.
(This was originally done by Erik as part of #3933. I'm cherry-picking it because really it's a fix in its own right)