Is there any way to configure redis such that it can periodically dump the data (not the commands) to another database like MySQL.
I am aware that Redis has persistence options like RDB file and AOF file. But these files store the commands and not the actual key-value pairs of the Redis database/cache.
My use case is something like this,
- An application is writing data into redis cache.
- Redis needs to do a slow-write of this data into another database could be MySQL or MongoDB.
The actions in step number 2 can be achieved by writing code to periodically read from redis and then write into another database. But wanted to know if there is any way to achieve this with the exisiting configuration options of redis.