Similar to #38, it would be really useful to have an eviction listener.
In my use-case i'm using an in-memory Cache<MyKey, File> to manage an on-disk cache of files, so whenever an entry is expired / removed / evicted from the cache I need to delete the corresponding file.
I'm currently using caffeine but would like to try cache2k to see if it supports our access patterns better.
Similar to #38, it would be really useful to have an eviction listener.
In my use-case i'm using an in-memory
Cache<MyKey, File>to manage an on-disk cache of files, so whenever an entry is expired / removed / evicted from the cache I need to delete the corresponding file.I'm currently using caffeine but would like to try cache2k to see if it supports our access patterns better.