Nov 3rd, 2012, 02:22 PM
Dynamically set cache namespaces specific to each module
I posted a question earlier http://forum.springsource.org/showth...176#post429176 on how to dynamically set cache names, but I guess my question wasn't clear enough.
What I'm trying to achieve are:
- Set up one module for caching, and other client modules will just add it as one of the depe
- Each client module may have its own set of caching properties to specify caching mechanisms to use, cache namespace, and other cache related parameters, such as memcached server address, cache expiry, etc. And these client modules are NOT spring projects so the spring dependency is only in the cache module.
- The cache module will read properties files for each client module, configure the cache manager accordingly.
So is this doable? and can I add cacheManager to compositeManager dynamically at run time. and can I specify cache namespace at run time too?
Nov 8th, 2012, 06:34 AM
I'm knew in this area , but hoe I understood , you can't add cacheManager to compositeManager dynamically at run time .
Tags for this Thread