improve cache configuration of blame, browse and log command

This commit is contained in:
Sebastian Sdorra
2012-06-24 17:27:40 +02:00
parent ede9312ef1
commit 43d0ea67a8
4 changed files with 30 additions and 3 deletions

View File

@@ -83,7 +83,7 @@ public final class BlameCommandBuilder
{ {
/** name of the cache */ /** name of the cache */
static final String CACHE_NAME = "sonia.scm.cache.blame"; static final String CACHE_NAME = "sonia.cache.cmd.blame";
/** /**
* the logger for BlameCommandBuilder * the logger for BlameCommandBuilder

View File

@@ -85,7 +85,7 @@ public final class BrowseCommandBuilder
{ {
/** Name of the cache */ /** Name of the cache */
static final String CACHE_NAME = "sonia.scm.cache.browse"; static final String CACHE_NAME = "sonia.cache.cmd.browse";
/** /**
* the logger for BrowseCommandBuilder * the logger for BrowseCommandBuilder

View File

@@ -94,7 +94,7 @@ public final class LogCommandBuilder
{ {
/** name of the cache */ /** name of the cache */
static final String CACHE_NAME = "sonia.scm.cache.log"; static final String CACHE_NAME = "sonia.cache.cmd.log";
/** /**
* the logger for LogCommandBuilder * the logger for LogCommandBuilder

View File

@@ -161,4 +161,31 @@
diskPersistent="false" diskPersistent="false"
/> />
<cache
name="sonia.cache.cmd.log"
maxElementsInMemory="20000"
eternal="false"
overflowToDisk="false"
timeToLiveSeconds="86400"
diskPersistent="false"
/>
<cache
name="sonia.cache.cmd.browse"
maxElementsInMemory="10000"
eternal="false"
overflowToDisk="false"
timeToLiveSeconds="86400"
diskPersistent="false"
/>
<cache
name="sonia.cache.cmd.blame"
maxElementsInMemory="1000"
eternal="false"
overflowToDisk="false"
timeToLiveSeconds="86400"
diskPersistent="false"
/>
</ehcache> </ehcache>