I'm using redis with my spring boot application using jedis, spring-data-redis. I want to control the persistence mechanism of redis in the following way.
In one case I want the data to be persisted into the dump file, so that on restart of redis server that data should be accessible.
In second case I want to keep the data just into redis in-memory and accessible to the application till the redis server is running and should be discarded on redis server restart.
I've read the redis data persistence policies and it seems that it allows storing the data on some time intervals, but is there any way I can control the persistence only programmatically & not use the time interval based persistence mechanism