In general caching systems are volatile and not meant to be used to store data that cannot be afforded to be lost. Of course that doesn't stop clients from storing critical data on there in return for the simple GET/PUT APIs and low latencies.
You can go for more complex caches such as Hazelcast which offers hot restarts by persisting data to disk.
You can go for more complex caches such as Hazelcast which offers hot restarts by persisting data to disk.