-
1. Re: No cache store configured
nadirx Oct 22, 2012 8:44 AM (in response to adityalele)1 of 1 people found this helpfulEven 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
-
2. Re: No cache store configured
adityalele Oct 23, 2012 12:54 AM (in response to nadirx)1 of 1 people found this helpfulthanks 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)
-
3. Re: No cache store configured
nadirx Oct 23, 2012 9:33 AM (in response to adityalele)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.