Add eviction hooks for caching

This allows shutdown work to be done on any values removed from the cache via non-explicit means.