java - How can I make the cache name in Spring cache configurable? - Stack Overflow
you can also use the cache directly, makes all even more predictable
EhCacheCacheManager cacheManager = (EhCacheCacheManager) CDBBeanFactory.instance().getBean("cacheManager"); CacheManager manager cacheManager.getCacheManager(); manager.getCache("cacheBin").get("key"); manager.getCache("cacheBin").put(new Element(key, obj));
Read full article from java - How can I make the cache name in Spring cache configurable? - Stack Overflow
No comments:
Post a Comment