Reputation: 3975
I am using infinispan 6.0.1 release, I have configured it to use SingleFileStore as loader
Configuration is as below
<namedCache name="MyCache">
<persistence passivation="true">
<singleFile fetchPersistentState="true"
ignoreModifications="false"
purgeOnStartup="false" maxEntries="5000">
</singleFile>
</persistence>
My question is, will this cache survive JVM restarts? I mean lets say my cache is holding {n} entries and my jvm goes down. When JVM starts again will my cache initialized with {n} entries?
Thanks in advance!!
Upvotes: 2
Views: 547
Reputation: 5723
With passivation enabled, my understanding is, that everything only present in memory will persisted during shutdown. However, I cannot find proof in the InfiniSpan documentation now.
Anyway, keep in mind that the SingeFileStore is not a robust implementation. The stored value will only survive, if you do a correct shutdown.
Upvotes: 2
Reputation: 5888
With passivation, the entry is EITHER in memory (activated) OR in cache store (passivated). Therefore, no, it won't.
Upvotes: 2