1 of 1 people found this helpful
No, 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"));
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.
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.