This content has been marked as final.
Show 2 replies
-
1. Re: Infinispan 6 used of wildcards on named cache
nadirx Dec 12, 2013 4:02 AM (in response to rstrazza)1 of 1 people found this helpfulNo, but you can use cache configuration inheritance. Suppose you have "my-cache" defined in your CacheManager (either declaratively or programmatically), you can do as follows:
ConfigurationBuilder b = new ConfigurationBuilder().read(cm.getCacheConfiguration("my-cache"));
cm.defineConfiguration("my-cache-test1", b.build());
Cache cache = cm.getCache("my-cache-test1");
There is a defineConfiguration(name, template, overrides) which could work but unfortunately it doesn't accept a null override. I think this is something that we should do.
Tristan
-
2. Re: Infinispan 6 used of wildcards on named cache
rstrazza Dec 12, 2013 9:36 AM (in response to nadirx)Thanks for your reply Tristan and I totally agree, this feature is commonly used and is very convenient in cases like mine where we use Spring Cache.