Basically what we need would be a cache
- which can flush on disk in some conditions (more than 5k objects are created in memory, so decides with a strategy to flush on disk).
This is discussed here: https://docs.jboss.org/author/display/ISPN/Eviction
- also I would need to be able to reload all the flushed data back on restart of the cache (am aware that in memory might not have been sync). If all the data from memory is stored on disk aswell via some async process, that would be great (so all the objects in memory have a mirror on disk).
I think what you're after is preloading. DIscussed at large here: https://docs.jboss.org/author/display/ISPN/Cache+Loaders+and+Stores
- transactional. Basically short lived transactions.
And some words about transactions: https://docs.jboss.org/author/display/ISPN/Infinispan+transactions
Thanks for the feedback!