Commits

Anonymous committed 700b570

final OSCache 2.4 pages

  • Participants
  • Parent commits 36c89bc

Comments (0)

Files changed (4)

docs/wiki/Hibernate 2.1 Cache Provider.html

 		<span class="code-keyword">return</span> Timestamper.next();
 	}
 
+	/**
+	 * Callback to perform any necessary initialization of the underlying cache implementation
+	 * during SessionFactory construction.
+	 *
+	 * @param properties current configuration settings.
+	 */
+	<span class="code-keyword">public</span> void start(Properties properties) <span class="code-keyword">throws</span> CacheException {
+	}
+
+	/**
+	 * Callback to perform any necessary cleanup of the underlying cache implementation
+	 * during SessionFactory.close().
+	 */
+	<span class="code-keyword">public</span> void stop() {
+	}
+
 }</pre>
 </div></div>
 

docs/wiki/Home.html

 	<ul>
 		<li><a href="http://forums.opensymphony.com/forum.jspa?forumID=4" title="Visit page outside Confluence">Support Forum</a></li>
 		<li><a href="https://oscache.dev.java.net/servlets/ProjectMailingListList" title="Visit page outside Confluence">Mailing List</a></li>
-		<li><a href="https://oscache.dev.java.net/source/browse/oscache/" title="Visit page outside Confluence">CVS Access</a></li>
+		<li><a href="http://svn.opensymphony.com/svn/oscache/" title="Visit page outside Confluence">SVN Access</a> beginning with release 2.4 or <a href="https://oscache.dev.java.net/source/browse/oscache/" title="Visit page outside Confluence">CVS Access</a> until release 2.3.2</li>
 	</ul>
 	</li>
 </ul>
 </ul>
 
 
-<p>OSCache's official homepage is <a href="http://www.opensymphony.com/oscache/" title="Visit page outside Confluence">&#104;ttp://www.opensymphony.com/oscache/</a>. There you can find documentation for the latest released version of OSCache.</p>
-
-<h2><a name="Home-MostRecentNews"></a>Most Recent News</h2>
-
-    
-                    <div class="greybox" style="background: #f0f0f0; font-weight: bold; text-decoration:none; color: black;">
-                <img src="/images/icons/blogentry_16.gif" height="16" width="16" border="0" align="absmiddle" />
-                <a href="/display/CACHE/2006/07/22">Saturday, July 22, 2006</a>
-            </div>
-        
-
-<div class="blogpost" style="margin-bottom: 30px">
-    <div class="blogHeading" style="margin-top: 0px; padding-top: 0px"><a style="text-decoration: none; color: black" href="/display/CACHE/2006/07/22/OSCache+2.3.2+Released">OSCache 2.3.2 Released</a></div>
-
-    <div class="pagesubheading">
-                    Last changed: Jul 23, 2006 06:58 by     <a href="/display/~lars%2Bt">Lars Torunski</a>                    </div>
-        <div class="wiki-content">
-         <p><span class="nobr"><a href="http://wiki.opensymphony.com/display/CACHE/OSCache+2.3.2" title="Visit page outside Confluence" rel="nofollow">Version 2.3.2<sup><img class="rendericon" src="/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"/></sup></a></span> of the popular open-source J2EE cache was released on 23rd July 2006. </p>
-
-<p>This maintenance release includes one enhancement to the cache groups:</p>
-
-<ul>
-	<li>The removeEntry method in the cache removes the entry from its groups now</li>
-</ul>
-
-
-<p>and bug fixes:</p>
-
-<ul>
-	<li>Method addGroupMappings leads to inconsistent memory cache if a persistent cache group exists</li>
-	<li>Cache group is updated if entry is removed (duplicate)</li>
-</ul>
-
-
-<p>This release can be <span class="nobr"><a href="https://oscache.dev.java.net/servlets/ProjectDocumentList?folderID=5683" title="Visit page outside Confluence" rel="nofollow">downloaded<sup><img class="rendericon" src="/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"/></sup></a></span> now.</p>
-        </div>
-            <div class="endsection" align="right" style="color: #666666; margin-top: 10px">
-        <b>Posted at 22 Jul @ 3:26 AM</b> by
-        <img src="/images/icons/user_16.gif" height="16" width="16" border="0" align="absmiddle" title="User Profile: Lars Torunski">
-            <a href="/display/~lars%2Bt">Lars Torunski</a>        |
-        <img src="/images/icons/comment_16.gif" height="16" width="16" border="0" align="absmiddle">
-                    <a href="/display/CACHE/2006/07/22/OSCache+2.3.2+Released?showComments=true#comments">0 comments</a>
-        
-
-    </div>
-</div>    
-                    <div class="greybox" style="background: #f0f0f0; font-weight: bold; text-decoration:none; color: black;">
-                <img src="/images/icons/blogentry_16.gif" height="16" width="16" border="0" align="absmiddle" />
-                <a href="/display/CACHE/2006/06/19">Monday, June 19, 2006</a>
-            </div>
-        
-
-<div class="blogpost" style="margin-bottom: 30px">
-    <div class="blogHeading" style="margin-top: 0px; padding-top: 0px"><a style="text-decoration: none; color: black" href="/display/CACHE/2006/06/19/OSCache+2.3.1+Released">OSCache 2.3.1 Released</a></div>
-
-    <div class="pagesubheading">
-                    </div>
-        <div class="wiki-content">
-         <p><span class="nobr"><a href="http://wiki.opensymphony.com/display/CACHE/OSCache+2.3.1" title="Visit page outside Confluence" rel="nofollow">Version 2.3.1<sup><img class="rendericon" src="/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"/></sup></a></span> of the popular open-source J2EE cache was released on 19th June 2006. </p>
-
-<p>This maintenance release includes one enhancement to the <span class="nobr"><a href="http://wiki.opensymphony.com/display/CACHE/CacheFilter" title="Visit page outside Confluence" rel="nofollow">CacheFilter<sup><img class="rendericon" src="/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"/></sup></a></span>:</p>
-
-<ul>
-	<li>Default initialization of the Cache-Control <span class="nobr"><a href="http://wiki.opensymphony.com/display/CACHE/CacheFilter#CacheFilter-maxage" title="Visit page outside Confluence" rel="nofollow">max-age<sup><img class="rendericon" src="/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"/></sup></a></span></li>
-</ul>
-
-
-<p>and bug fixes:</p>
-
-<ul>
-	<li>Cache.flushAll(Date flushDate) won't throw NeedsRefreshException when flush date is not yet reached anymore</li>
-	<li>No NoSuchElementException at Cache.putInCache() anymore</li>
-</ul>
-
-
-<p>This release can be <span class="nobr"><a href="https://oscache.dev.java.net/servlets/ProjectDocumentList?folderID=5511" title="Visit page outside Confluence" rel="nofollow">downloaded<sup><img class="rendericon" src="/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"/></sup></a></span> now.</p>
-        </div>
-            <div class="endsection" align="right" style="color: #666666; margin-top: 10px">
-        <b>Posted at 19 Jun @ 1:38 PM</b> by
-        <img src="/images/icons/user_16.gif" height="16" width="16" border="0" align="absmiddle" title="User Profile: Lars Torunski">
-            <a href="/display/~lars%2Bt">Lars Torunski</a>        |
-        <img src="/images/icons/comment_16.gif" height="16" width="16" border="0" align="absmiddle">
-                    <a href="/display/CACHE/2006/06/19/OSCache+2.3.1+Released?showComments=true#comments">0 comments</a>
-        
-
-    </div>
-</div>    
-                    <div class="greybox" style="background: #f0f0f0; font-weight: bold; text-decoration:none; color: black;">
-                <img src="/images/icons/blogentry_16.gif" height="16" width="16" border="0" align="absmiddle" />
-                <a href="/display/CACHE/2006/03/06">Monday, March 6, 2006</a>
-            </div>
-        
-
-<div class="blogpost" style="margin-bottom: 30px">
-    <div class="blogHeading" style="margin-top: 0px; padding-top: 0px"><a style="text-decoration: none; color: black" href="/display/CACHE/2006/03/06/OSCache+2.3+Released">OSCache 2.3 Released</a></div>
-
-    <div class="pagesubheading">
-                    </div>
-        <div class="wiki-content">
-         <p><span class="nobr"><a href="http://wiki.opensymphony.com/display/CACHE/OSCache+2.3" title="Visit page outside Confluence" rel="nofollow">Version 2.3<sup><img class="rendericon" src="/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"/></sup></a></span> of the popular open-source J2EE cache was released on 6th March 2006. This release includes additional improvements to the <span class="nobr"><a href="http://wiki.opensymphony.com/display/CACHE/CacheFilter" title="Visit page outside Confluence" rel="nofollow">CacheFilter<sup><img class="rendericon" src="/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"/></sup></a></span>:</p>
-
-<ul>
-	<li>CRON expressions to expire content at specific dates and/or times</li>
-	<li>Pluggable EntryRefreshPolicy</li>
-	<li>Reduced memory consumption</li>
-</ul>
-
-
-<p>Disk persistence:</p>
-
-<ul>
-	<li>Faster disk persistence</li>
-	<li>Avoid DiskPersistenceListener deadlocks if process has no rights to delete cache file</li>
-</ul>
-
-
-<p>Further changes are:</p>
-
-<ul>
-	<li>new JSP tag <em>addgroups</em></li>
-	<li>interface to get a list of the cache event listeners</li>
-	<li>commons collection dependency removed</li>
-	<li>Java 1.3 support dropped</li>
-</ul>
-
-
-<p>This release can be <span class="nobr"><a href="https://oscache.dev.java.net/servlets/ProjectDocumentList?folderID=4941" title="Visit page outside Confluence" rel="nofollow">downloaded<sup><img class="rendericon" src="/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"/></sup></a></span> now.</p>
-        </div>
-            <div class="endsection" align="right" style="color: #666666; margin-top: 10px">
-        <b>Posted at 06 Mar @ 1:00 PM</b> by
-        <img src="/images/icons/user_16.gif" height="16" width="16" border="0" align="absmiddle" title="User Profile: Lars Torunski">
-            <a href="/display/~lars%2Bt">Lars Torunski</a>        |
-        <img src="/images/icons/comment_16.gif" height="16" width="16" border="0" align="absmiddle">
-                    <a href="/display/CACHE/2006/03/06/OSCache+2.3+Released?showComments=true#comments">0 comments</a>
-        
-
-    </div>
-</div>    
+<p>OSCache's official homepage is <a href="http://www.opensymphony.com/oscache/" title="Visit page outside Confluence">http://www.opensymphony.com/oscache/</a>. There you can find the documentation of the latest production release of OSCache.</p>
 
                     			    </td>
 		    </tr>

docs/wiki/OSCache 2.0 beta 1.html

 	<li><a href="http://jira.opensymphony.com/browse/CACHE-35" title="Visit page outside Confluence">CACHE-35 </a> CacheFilter needs to distinguish between HEAD and GET requests.</li>
 	<li><a href="http://jira.opensymphony.com/browse/CACHE-39" title="Visit page outside Confluence">CACHE-39 </a> and <a href="http://jira.opensymphony.com/browse/CACHE-44" title="Visit page outside Confluence">CACHE-44 </a> Synchronization with LRUCache fixed.</li>
 	<li><a href="http://jira.opensymphony.com/browse/CACHE-42" title="Visit page outside Confluence">CACHE-42 </a> Threads will no longer race to (re)build expired or new cache entries. By default stale content will be served if available. This behaviour can be changed by setting oscache.blocking=true, which will instead cause threads to block until the new cache entry is available.</li>
-	<li><a href="http://jira.opensymphony.com/browse/CACHE-43" title="Visit page outside Confluence">CACHE-43 </a> Taglibs have been made spec-compliant. They now follow the guidelines at <a href="http://jakarta.apache.org/taglibs/guidelines.html" title="Visit page outside Confluence">&#104;ttp://jakarta.apache.org/taglibs/guidelines.html</a>.</li>
+	<li><a href="http://jira.opensymphony.com/browse/CACHE-43" title="Visit page outside Confluence">CACHE-43 </a> Taglibs have been made spec-compliant. They now follow the guidelines at <a href="http://jakarta.apache.org/taglibs/guidelines.html" title="Visit page outside Confluence">http://jakarta.apache.org/taglibs/guidelines.html</a>.</li>
 	<li>Some synchronization issues were fixed in LRUCache.getItem() and AbstractConcurrentReadCache.setMaxEntries().</li>
 	<li>ScopeEventListener classes were previously not able to be specified in the configuration even though the dispatching code was implemented. ScopeEventListeners can now be specified using the cache.event.listeners configuration property.</li>
 	<li>CacheMapAccessEvents now only fire when an attempt is made to retrieve the actual cache content for external use. Previously these events were being fired in circumstances that were not of statistical interest - for example HIT and MISS events were being fired when updating or flushing entries from the cache.</li>

docs/wiki/Statistics.html

 			    <td valign="top" class="pagebody">
 				    <h3><a name="Statistics-Description"></a>Description</h3>
 
-<p>With the <a href="http://www.opensymphony.com/oscache/api/com/opensymphony/oscache/base/events/package-summary.html" title="Visit page outside Confluence">cache event handlers</a> a listerner can be implemented to provide cache hits and misses information. You can copy and paste the following code to get a statistic of your OSCache integration. Just change the used logger and the sample helps you to improve the cache key creation and to decide which scope to use. The <em>StatisticListenerImpl</em> should be <a href="Configuration.html" title="Configuration">configured</a> via the <em>cache.event.listeners</em> in the <em>oscache.properties</em>.</p>
+<p>With the <a href="http://www.opensymphony.com/oscache/api/com/opensymphony/oscache/base/events/package-summary.html" title="Visit page outside Confluence">cache event handlers</a> a listerner can be implemented to provide cache hits and misses information. You can copy and paste the following code to get a statistic of your OSCache integration. Just change the used logger and the sample helps you to improve the cache key creation and to decide which scope to use. The <em>SimpleStatisticListenerImpl</em> should be <a href="Configuration.html" title="Configuration">configured</a> via the <em>cache.event.listeners</em> in the <em>oscache.properties</em>.</p>
 
 <h3><a name="Statistics-SampleCode"></a>Sample Code</h3>
 
-<div class="code" style="border-style: solid; "><div class="codeHeader" style="border-bottom-style: solid; "><b>StatisticListenerImpl.java</b></div><div class="codeContent">
+<div class="code" style="border-style: solid; "><div class="codeHeader" style="border-bottom-style: solid; "><b>SimpleStatisticListenerImpl.java</b></div><div class="codeContent">
 <pre class="code-java">/*
- * Copyright (c) 2002-2005 by OpenSymphony
+ * Copyright (c) 2002-2007 by OpenSymphony
  * All rights reserved.
  */
 <span class="code-keyword">package</span> com.opensymphony.oscache.extra;
  * The consequence is that on retrieving values, the operations that are
  * currently being done won't be counted.
  */
-<span class="code-keyword">public</span> class StatisticListenerImpl <span class="code-keyword">implements</span> CacheMapAccessEventListener, CacheEntryEventListener, ScopeEventListener {
+<span class="code-keyword">public</span> class SimpleStatisticListenerImpl <span class="code-keyword">implements</span> CacheMapAccessEventListener, CacheEntryEventListener, ScopeEventListener {
 
-    <span class="code-keyword">private</span> <span class="code-keyword">static</span> <span class="code-keyword">transient</span> <span class="code-keyword">final</span> Log log = LogFactory.getLog(StatisticListenerImpl.class);
+    <span class="code-keyword">private</span> <span class="code-keyword">static</span> <span class="code-keyword">transient</span> <span class="code-keyword">final</span> Log log = LogFactory.getLog(SimpleStatisticListenerImpl.class);
 
     /**
      * Hit counter
     /**
      * Constructor, empty <span class="code-keyword">for</span> us
      */
-    <span class="code-keyword">public</span> StatisticListenerImpl() {
-        log.info(<span class="code-quote">"Creation of StatisticListenerImpl"</span>);
+    <span class="code-keyword">public</span> SimpleStatisticListenerImpl() {
+        log.info(<span class="code-quote">"Creation of SimpleStatisticListenerImpl"</span>);
     }
 
     /**
      * @<span class="code-keyword">return</span> <span class="code-object">String</span>
      */
     <span class="code-keyword">public</span> <span class="code-object">String</span> toString() {
-        <span class="code-keyword">return</span> <span class="code-quote">"StatisticListenerImpl: Hit = "</span> + hitCount + <span class="code-quote">" / "</span> + hitCountSum +
+        <span class="code-keyword">return</span> <span class="code-quote">"SimpleStatisticListenerImpl: Hit = "</span> + hitCount + <span class="code-quote">" / "</span> + hitCountSum
                 + <span class="code-quote">", stale hit = "</span> + staleHitCount + <span class="code-quote">" / "</span> + staleHitCountSum
                 + <span class="code-quote">", miss = "</span> + missCount + <span class="code-quote">" / "</span> + missCountSum
                 + <span class="code-quote">", flush = "</span> + flushCount;