-
1. Re: How to setup standalone cache w/ an expiration time
lordhong2 Oct 19, 2005 3:07 PM (in response to lordhong2)here's the my-config again...
attribute name="EvictionPolicyClass" org.jboss.cache.eviction.LRUPolicy attribute
attribute name="EvictionPolicyConfig"
config
attribute name="wakeUpIntervalSeconds" 5 /attribute
region name="/_default_"
attribute name="maxNodes" 5000 /attribute
attribute name="timeToLiveSeconds" 3 /attribute
attribute name="maxAgeSeconds" 5 /attribute
/region
region name="/test/1"
attribute name="maxNodes" 1000 /attribute
attribute name="timeToLiveSeconds" 2 /attribute
attribute name="maxAgeSeconds" 3 /attribute
/region
/config
/attribute -
2. Re: How to setup standalone cache w/ an expiration time
lordhong2 Oct 19, 2005 3:08 PM (in response to lordhong2)argh... i cannot edit my post...
this line:
String s = (String)tree.get("/fandango/1","5sec");
should be:
String s = (String)tree.get("/test/1","5sec"); -
3. Re: How to setup standalone cache w/ an expiration time
ben.wang Oct 19, 2005 5:15 PM (in response to lordhong2)maxAgeSeconds has been deprecated long time ago (since 1.2) for timeToLiveSeconds.
Try to run the junit test under the distro. Under evict, it has numerous examples illustrating the eviction policy expiration test.
-Ben -
4. Re: How to setup standalone cache w/ an expiration time
lordhong2 Oct 19, 2005 6:32 PM (in response to lordhong2)Thank you!
I found my problem was with "wakeUpIntervalSeconds" value being set too long.
Rock On! -
5. Re: How to setup standalone cache w/ an expiration time
anupama Jan 27, 2006 11:49 AM (in response to lordhong2)Hi Guys.
I am trying to use JBoss Tree Cache AOP for caching startup data, so my question is is it by default configured for Clustered environment, if not what I have to do for clustered environment. Moreover if I am able to use TreeCacheAOP without starting JBoss server, it's not giving me feeling that cache resides in server I know I am totally wrong but I amn't able to get clear picture of JBoss Tree Cache AOP, can you guys point me to a place where I can get clear picture.
Thanks alot,
Anu