Add expire time for element in cache
3439076579 opened this issue · comments
Why not add expire time as a Stats to remove an item in time?or we can try to make a ItemStats structure to record an item's Stats and start a background goroutinue to clean items which have been expired
https://github.com/mailgun/groupcache adds support for expired values.
OK,Thanks for your reply