Ehcache scores again
Some time ago, when I was selecting a cache for JPublish, I was looking at two of the best cache solutions of that time: Ehcache and Whirlycache.
Both of them are good cache implementations, actually I have to look again at the recent version of Whirlycache, but Ehcache is the best option for what we need inside JPublish. While WhirlyCache is a memory only cache, Ehcache shines with many options and a nice palette of settings.
I am happy to see that once again Ehcache proved to be the best option for us, read more...
With JPublish is very easy to choose between different cache implementations. In jpublish.xml, the main configuration file for a JPublish application, the cache is defined as follows:
<cache-manager>
<jpublish.cache.provider>
<implementation name="default" class="org.jpublish.util.JPublishCacheImpl"/>
</jpublish.cache.provider>
</cache-manager>
The above setting is using EHCache (our default cache implementation), but if you want to switch to WhirlyCache then you can change the implementation to:
<implementation name="default" class="org.jpublish.util.JPublishWhirlyCacheImpl"/>
Feel free to experiment and let us know your opinion.
Cheers,
Both of them are good cache implementations, actually I have to look again at the recent version of Whirlycache, but Ehcache is the best option for what we need inside JPublish. While WhirlyCache is a memory only cache, Ehcache shines with many options and a nice palette of settings.
I am happy to see that once again Ehcache proved to be the best option for us, read more...
With JPublish is very easy to choose between different cache implementations. In jpublish.xml, the main configuration file for a JPublish application, the cache is defined as follows:
<cache-manager>
<jpublish.cache.provider>
<implementation name="default" class="org.jpublish.util.JPublishCacheImpl"/>
</jpublish.cache.provider>
</cache-manager>
The above setting is using EHCache (our default cache implementation), but if you want to switch to WhirlyCache then you can change the implementation to:
<implementation name="default" class="org.jpublish.util.JPublishWhirlyCacheImpl"/>
Feel free to experiment and let us know your opinion.
Cheers,
