1 Reply Latest reply on Nov 27, 2013 9:25 AM by mircea.markus

    infinispan: modifying cache configuration after cache dynamically

    myahsi

      Hello,

       

      I want to ask a brief question. Is it possible to modify cache configuration after the cache has been created or started, in any infinispan version?

       

      For example:

       

      -----------------------------------------------------------------------------------------------------------------------------------

                     DefaultCacheManager manager = new DefaultCacheManager("config-file.xml");

                      Configuration baseConf = manager.getDefaultCacheConfiguration();

       

                      String programmaticCache = "testClusterCache";

                      manager.defineConfiguration(programmaticCache, baseConf);

                     

                      Cache<String, Ticket> cache = manager.getCache(programmaticCache);

       

                     //Now change its configuration

                     //like eviction algorithm or maxentries

      ------------------------------------------------------------------------------------------------------------------------------------

       

      Thank you,