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

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Donald Le

Donald Le

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