SimpleCacheManager should not synchronize on AbstractCacheManager#cacheMap #23635
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Affects: 5.1.8
By inheriting
AbstractCacheManager#getCache
,SimpleCacheManager
synchronizes oncacheMap
, when the requestedCache
is not available.Since
SimpleCacheManager
uses predefined caches, this creates superfluous synchronizations.The same is actually true for
RedisCacheManager
, when inflightCache
allocation is disabled.This hits us on every request, since we are using
CompositeCacheManager
, which first checks ourSimpleCacheManager
holding only select caches and only afterwards to the manager holding the actual cache for certain requests.The text was updated successfully, but these errors were encountered: