3 Replies Latest reply on Oct 23, 2012 9:33 AM by nadirx

    No cache store configured

    adityalele

      What happens if i do not configure a cache store and keep pushing data to my cache?

      Will it not eventually get full?

      Is there a default cache store configuration?

       

      (I am using hotrod servers)

        • 1. Re: No cache store configured
          nadirx

          Even if you add a cache store and do not configure eviction or passivation, the maximum size of a cache is limited by the amount of memory (i.e. there will always be a 1:1 relationship between the entries in memory and the entries in the store). The documentation explains Infinispan's behaviour when enabling eviction and passivation https://docs.jboss.org/author/display/ISPN/Cache+Loaders+and+Stores#CacheLoadersandStores-CachePassivation

           

          Hope this helps

           

          Tristan

          1 of 1 people found this helpful
          • 2. Re: No cache store configured
            adityalele

            thanks Tristan. What I really wanted to know was if i have NOT added any cache store what happens. I have no cache store.

             

            Also what if my code does not have the permission to write to the disk (assuming it automatically does in case no cache store configured)

            1 of 1 people found this helpful
            • 3. Re: No cache store configured
              nadirx

              There is no "default cache store", if you keep adding data you will get an OOM error unless eviction is configured. We currently do not have a memory-based eviction algorithm as calculating the memory occupation of java objects is quite expensive and possibly wrong.

               

              Unless you add a FileCacheStore, Infinispan will never write to disk.