jhalterman / expiringmap

A high performance thread-safe map that expires entries
Apache License 2.0
1k stars 142 forks source link

Add expirationType to ExpirationListener #53

Open erdalbitik opened 6 years ago

erdalbitik commented 6 years ago

As I mentioned in this issue, sometimes it is required to know why expiration is performed. ExpirationListener.expired() method is called due to two reasons. The first one is time based expiration for an entry and the second one is when entry size > maxSize. I just added expiration type to ExpirationListener.