one more idea about how to do this.
1) in the xml file make several timeout policies 
     i.e. 5m expires in 5 mintes, 10m expires in 10m etc
2) When someone request to put something in the cache, prepend the approriate 
the timeout value onto the node.

The ideal in this case would be to query the regionMangager to find the 
appropriate value to prepend on the node.  So if someone passed in a 7 minute 
timeout, I could find that the 10m node is the next value above the desired 
threshold.

This would mean a way to get the regionManager from the TreeCache, which I do 
not think I can do right now, but I could extend TreeCache and LRUPoliocy to 
get add a couple of get Methods.

Is this a better idea?  Is it possible?  It does mess up our node stragity a 
little bit (cleanup/queries for a specific node would have to look through 
several top level nodes), but it might be our best option.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854623#3854623

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854623


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to