Relaxed TransactionalCache

- Treating the shared cache like a database w.r.t. concurrency leads to too many conflicts,
   when it is quite reasonable to just throw the cached values away when in doubt.
Fixed cache size tracing


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5949 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2007-06-14 08:25:13 +00:00
parent fb069d1680
commit b65a6fe1a8
3 changed files with 81 additions and 166 deletions

View File

@@ -82,7 +82,7 @@ public class EhCacheTracerJob implements Job
{
if (cacheManager == null)
{
cacheManager = CacheManager.getInstance();
cacheManager = InternalEhCacheManagerFactoryBean.getInstance();
}
long maxHeapSize = Runtime.getRuntime().maxMemory();