karlseguin / ccache

A golang LRU Cache for high concurrency
MIT License
1.28k stars 119 forks source link

Manual or timer GC of expired items #13

Open riking opened 6 years ago

riking commented 6 years ago

Currently, expired items are only evicted when the cache fills to its maximum configured size.

Add an API method for clearing evicted items, possibly with a grace period (e.g. allow 30 minutes for the item to be .Extend()ed).