From bac0348951ce58f96804a66271d9e07cce922eda Mon Sep 17 00:00:00 2001 From: Par Winzell Date: Tue, 4 Nov 2008 19:20:33 +0000 Subject: [PATCH] Change these hard-coded defaults. Should also be made configurable. --- src/java/com/samskivert/jdbc/depot/EHCacheAdapter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/java/com/samskivert/jdbc/depot/EHCacheAdapter.java b/src/java/com/samskivert/jdbc/depot/EHCacheAdapter.java index 96c18b5..54c543c 100644 --- a/src/java/com/samskivert/jdbc/depot/EHCacheAdapter.java +++ b/src/java/com/samskivert/jdbc/depot/EHCacheAdapter.java @@ -117,11 +117,11 @@ public class EHCacheAdapter // create the cache programatically with reasonable settings // TODO: we will eventually need this to be configurable in .properties _cache = new Cache(id, - 5000, // keep 5000 elements in RAM + 1000, // keep 1000 elements in RAM true, // overflow the rest to disk false, // don't keep records around eternally - 600, // keep them for 10 minutes after they're created - 60); // or 1 minute after last access + 300, // keep them for 5 minutes after they're created + 20); // or 20 seconds after last access if (_distributed) { // a programatically created cache has to have its replicator event