October 2017
Intermediate to advanced
396 pages
10h 2m
English
Let's create XML based configuration for the Eache, and it is configuring here EhCacheCacheManager. Please refer to the following code:
<bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheCacheManager" p:cache-manager-ref="ehcache"/>
<!-- EhCache library setup -->
<bean id="ehcache"
class="org.springframework.cache.ehcache. EhCacheManagerFactoryBean" p:config- location="resources/ehcache.xml"/>
Similarly, in case of the XML configuration, you have to configure the cache manager for ehcache, configure the EhCacheManagerFactoryBean class, and set the config-location value with ehcache.xml, which has the Ehcache configuration as defined in the previous section.
There are many more third-party caching ...
Read now
Unlock full access