Redis-server store cache in which folder

Donald Le
Oct 18, 2021

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!!



Donald Le

A passionate automation engineer who strongly believes in “A man can do anything he wants if he puts in the work”.