Redis-server store cache in which folder

To be able to know this run the below command

redis-cli config get dir
1) "dir"
2) "/home/cuongld"

In my case the cache file is stored in /home/cuongld

Go to that folder then I see the dump.rdb file

To start redis-server with existing dump.rdb file, run this

redis-server --dir /path/to/dumpfile // this is a directory, not file

~~ Hope it helps ~~

Enjoy coding!!