EHC ❯ Support for multiple CacheManager(s)
-
Bug
-
Status: Closed
-
-
Resolution: Fixed
-
-
-
drb
-
Reporter: sourceforgetracker
-
September 21, 2009
-
0
-
Watchers: 0
-
September 22, 2009
-
September 22, 2009
Description
I’m working on an application where I want to use ehcache for disk based persistence. I’m pleased this is so easy to do.
In my particular case I want to be able to maintain the disk cache’s in different locations on the disk (user space). To do this, it seems I need multiple instances of CacheManager.
I was able to hack my version of ehcache1.1 to support this by adding the following method to CacheManager:
public static CacheManager createNewInstance(InputStream inputStream) throws CacheException \{
return new CacheManager(inputStream);
}
Here is an example of how I am using this:
StringBuffer sb = new StringBuffer();
final String cache1dir = “/tmp/foo”;
sb.append(“
Best regards, Robert. Sourceforge Ticket ID: 1159768 - Opened By: fuller - 9 Mar 2005 12:29 UTC
Re-opening so that I can properly close out these issues and have correct Resolution status in Jira