mailgun / expiringdict

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

What if no one lockup inserted key after expiration? (record stay in dictionary for ever) #24

Closed mohsensafari closed 8 years ago

mohsensafari commented 8 years ago

items will remove from data structure when some one lockup them and the expiration time is lower than current time. if no one lockup the key after expiration time that key will stay in memory for ever and this could result serious memory problem.

mohsensafari commented 8 years ago

I've just seen that you would delete them when max len reached no problem sorry for soon judgment.