<?xml version="1.0"?>
<rss version="2.0">
<channel>
  <title>Spikes Of Nothingness - cache tag</title>
  <link>http://weblog.flop.ca/tags/cache/</link>
  <description>Florin T.PATRASCU&#039;s blog</description>
  <language>en</language>
  <copyright>Florin T.PATRASCU</copyright>
  <lastBuildDate>Sat, 12 May 2012 02:12:08 GMT</lastBuildDate>
  <generator>Pebble (http://pebble.sourceforge.net)</generator>
  <docs>http://backend.userland.com/rss</docs>
  
  
  <item>
    <title> Ehcache scores again</title>
    <link>http://weblog.flop.ca/2007/05/18/1179540888456.html</link>
    
      
        <description>
          &lt;a href=&#034;http://weblog.flop.ca/2005/03/12/1110656258000.html&#034;&gt;Some&lt;/a&gt; time ago, when I was selecting a cache for &lt;a href=&#034;http://code.google.com/p/jpublish/&#034;&gt;JPublish&lt;/a&gt;, I was looking at two of the best cache solutions of that time: &lt;a href=&#034;http://ehcache.sourceforge.net/&#034;&gt;Ehcache&lt;/a&gt; and &lt;a href=&#034;https://whirlycache.dev.java.net/&#034;&gt;Whirlycache&lt;/a&gt;.&lt;br&gt;&lt;br&gt;

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.&lt;br&gt;&lt;br&gt;

I am happy to see that once again Ehcache proved to be the best option for us, read &lt;a href=&#034;http://gregluck.com/blog/archives/2007/05/comparing_memca.html&#034;&gt;more...&lt;/a&gt;&lt;br&gt;&lt;br&gt;

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:&lt;br&gt;&lt;br&gt;

&amp;nbsp;&amp;lt;cache-manager&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;lt;jpublish.cache.provider&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;implementation name=&amp;quot;default&amp;quot; class=&amp;quot;org.jpublish.util.JPublishCacheImpl&amp;quot;/&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;lt;/jpublish.cache.provider&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;lt;/cache-manager&amp;gt;&lt;br&gt;

&lt;br&gt;&lt;br&gt;
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:&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;lt;implementation name=&amp;quot;default&amp;quot; class=&amp;quot;org.jpublish.util.JPublishWhirlyCacheImpl&amp;quot;/&amp;gt;
&lt;br&gt;&lt;br&gt;

Feel free to experiment and let &lt;a href=&#034;http://groups.google.com/group/jpublish-user&#034;&gt;us&lt;/a&gt; know your opinion.&lt;br/&gt;
&lt;br&gt;
Cheers,
        </description>
      
      
    
    
    
    <category>Java</category>
    
    <comments>http://weblog.flop.ca/2007/05/18/1179540888456.html#comments</comments>
    <guid isPermaLink="true">http://weblog.flop.ca/2007/05/18/1179540888456.html</guid>
    <pubDate>Sat, 19 May 2007 02:14:48 GMT</pubDate>
  </item>
  
  </channel>
</rss>

