Deregister empty Cache
from CacheManager
#33813
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
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 internalcacheMap
which keeps growing as caches are dynamically created.Is there away to remove/deregister the empty cache instances from
cacheMap
?The text was updated successfully, but these errors were encountered: