I added a new CacheLoader, which allows for hierarchical caches, e.g. a first-level 
cache delegates to a second-level cache. Below is some sample code. There is also a 
unit test (DelegatingCacheLoaderTest) for reference.



  | TreeCache firstLevel, secondLevel;
  | DelegatingCacheLoader cache_loader;
  | 
  | // create and configure firstLevel
  | firstLevel=new TreeCache();
  | 
  | // create and configure secondLevel
  | secondLevel=new TreeCache();
  | 
  | // create DelegatingCacheLoader
  | cache_loader=new DelegatingCacheLoader(secondLevel);
  | 
  | // set CacheLoader in firstLevel
  | firstLevel.setCacheLoader(cache_loader);
  | 
  | // start secondLevel
  | secondLevel.startService();
  | 
  | // start firstLevel
  | firstLevel.startService();
  | 

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

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


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to