Fork and modify this class http://cvs.sourceforge.net/viewcvs.py/voruta/voruta/src/java/net/sf/voruta/S oftRefMemoryCache.java It is simple soft cache implementation and emulates LRU.
BTW: Suns JVM SoftReference implements LRU algorythm itself . ----- Original Message ----- From: "Greg Luck" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, November 15, 2003 1:10 AM Subject: [Hibernate] EHCache and JDK1.4 > Hi > > EHCache does require the use of JDK1.4. > > Specifically we use: > > - LinkedHashMap, which provides us with an LRU HashMap > - JDK1.4 logging > - SoftRefererences > > I guess there is a lot of production code out there on JDK1.3 and > earlier. I could replace > the JDK1.4 logging with commons logging and the java.util.LinkedHashMap > with something > similar. > > I was pretty keen to use the java.util.LinkedHashMap, because the > combination of a doubly-linked > list combined with a Hashmap in JCS was the source of the memory leak > in it. The memory store code > went from around 1500 lines down to a few hundred and became much > simpler to understand. > > Greg Luck > > > > ------------------------------------------------------- > This SF. Net email is sponsored by: GoToMyPC > GoToMyPC is the fast, easy and secure way to access your computer from > any Web browser or wireless device. Click here to Try it Free! > https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl > _______________________________________________ > hibernate-devel mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/hibernate-devel ------------------------------------------------------- This SF. Net email is sponsored by: GoToMyPC GoToMyPC is the fast, easy and secure way to access your computer from any Web browser or wireless device. Click here to Try it Free! https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel