mailgun / expiringdict

Dictionary with auto-expiring values for caching purposes.
Apache License 2.0
347 stars 76 forks source link

Fix small eviction bug; add the ability to track evictions #32

Open frobcode opened 6 years ago

frobcode commented 6 years ago

Hello! I wanted to be able to track evictions, and found a fun little bug in the eviction code (if you update an existing value, it will delete the oldest value in the dict).

Thanks for this handy class!