New for caching ...
I looked in Spring EHCache, and I found its wonderful write-behind function. First, the data is written to the cache, and then to the base database asynchronously, which reduces the load on the database by changing the time, speed limits or merging (by the way, do other caches have the same capabilities?). This is just great for what I need.
Now..
What happens if my server / system / cache crashes badly (I mean really bad) for some reason? Would I lose the data stored in the cache that are waiting to be loaded into the database? Can I prevent this from using "Large memory" or "Disk store", and will these options be convenient?
Thank you very much.
source share