Hi:

A commons-caching wrapper would be nice.  Although I
don't see why you would want anything but JCS, you
should be able to switch without too much pain.  

For my current contract, I've built all sorts of admin
stuff on top of log4j to configure levels via web
interfaces, etc., but we could still switch to the jdk
cache if necessary.  The admin stuff wouldn't have any
effect but the application would work.  

JCS has far more functionality than ehcache (which was
annoyingly made from the JCS source, rather than
submitting patches to JCS?), but all the config can be
done in a configuration file.  Even if you want JCS
specific programatic configuration features, such as
fine grained element configuration, you can minimize
the places in your code base where you are dependent
on JCS.  This would make a conversion less painful.   

The commons cache could try to provide a front for
jsr107, but something simpler may be best.  JSR 107
has some problems (in that it forces you into a rigid
lateral distribution model) and besides it is pretty
much dead.

Something like this would do for commons-caching:

----------------------------------------
class CacheFactory {
Cache getCache( String name )
void shutDown()
}

interface Cache {
void put(Object key, Object value)
void get(Object key)
void remove(Object key)
void removeAll()
void getStats()
}
-----------------------------------

Yes, I think the couple problems that Hibernate folks
found in JCS have been resolved.  There have been tons
of enhancements to JCS in the last year.

There was a problem with removeAll not clearing a
linked list.  It is resolved.  

There was talk of a deadlock in the disk cache.  Since
this was mentioned, the disk cache has undergone
significant improvements.  

Yesterday, I ran 300 million random transactions
against 3 caches connected with the TCP auxiliary, all
using the disk cache without any problems.

As for the gui, JCS provides a gui admin.  You can
jsut drop a the jsp into your war.  I'm adding to the
admin functionality right now. . . . 

Cheers,

Aaron Smuts


>RE: commons cache

>------------------------------------------------------->-------------------------

>From: Baum, Karl 
>Subject: RE: commons cache 
>Date: Wed, 14 Jul 2004 15:13:54 -0700 

>------------------------------------------------------->-------------------------
> project I was on in the past, we wanted to switch
>between JCS and
>EHCache when it was discovered that JCS had several
>bugs with disk
>persistance.  Of course this was near impossible
>because our
>administration tools needed to talk to JCS.

>As a side note, I think many of the JCS bugs have
>been fixed since then.


 



                
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to