open fun setCacheManager(cacheManager: CacheManager): Unit
Set a CacheManager from which to retrieve a named Cache instance. By default, CacheManager.getInstance() will be called.
Note that in particular for persistent caches, it is advisable to properly handle the shutdown of the CacheManager: Set up a separate EhCacheManagerFactoryBean and pass a reference to this bean property.
A separate EhCacheManagerFactoryBean is also necessary for loading EhCache configuration from a non-default config location.
See Also
EhCacheManagerFactoryBeannet.sf.ehcache.CacheManager#getInstance