CacheConfiguration cfg = ignite.cacheConfiguration("myTemplate"); cfg.setName("myCacheFromTemplate"); ignite.createCache(cfg);
Ok, I got it. We already have addCacheConfiguration and cacheConfiguration should be a getter-like counterpart for it. So, I would suggest deprecating this addCacheConfiguration method and add new one Ignite.addCacheTemplate and its counterpart getCacheTemplate. Because cacheConfiguration looks very weird, I would expect that it should return cache configuration for any given cache name. Thoughts? On Thu, Feb 14, 2019 at 12:01 AM Sergey Moldachev <sergeymoldac...@gmail.com> wrote: > Hi, Eduard, thank you for your reply! > > You can find example and full description in the Jira task > <https://issues.apache.org/jira/browse/IGNITE-11141>. Also you can find > simple implementation in comments. > > Thank you, > Sergey! > > + update subject (fixed a typo) > > ср, 13 февр. 2019 г. в 19:55, Eduard Shangareev < > eduard.shangar...@gmail.com > >: > > > Hi, Sergey! > > > > Could you give some example of how it is supposed to use? > > > > On Wed, Feb 13, 2019 at 6:02 PM Sergey Moldachev < > > sergeymoldac...@gmail.com> > > wrote: > > > > > Hi, Igniters! > > > > > > I want to add the new java method *cacheConfiguration(String > cacheName)* > > in > > > to *Ignite* core interface as part of the task > > > https://issues.apache.org/jira/browse/IGNITE-11141. > > > > > > I'll be glad to see the comments about this feature. > > > > > > Thank you, > > > Sergey > > > > > >