Skip to content

Deregister empty Cache from CacheManager #33813

@trung

Description

@trung

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?

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions