I use CaffeineCacheManager and create temporary caches dynamically for each request. When a request completes, the cache items are evicted, leaving the cache instances empty but still in memory.
CaffeineCacheManager has an internal cacheMap which keeps growing as caches are dynamically created.
Is there away to remove/deregister the empty cache instances from cacheMap?