From 26ca5335c66b7bc6d1b1f24e2f113cc6909442cf 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. git-svn-id: https://samskivert.googlecode.com/svn/trunk@2468 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- 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 96c18b5a..54c543c8 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