Home  >  Article  >  Backend Development  >  Why is the save configuration item commented in redis.conf and the last written data is still stored in redis after restarting the server?

Why is the save configuration item commented in redis.conf and the last written data is still stored in redis after restarting the server?

WBOY
WBOYOriginal
2016-08-18 09:16:031394browse

Why is the save configuration item commented in redis.conf and the last written data is still stored in redis after restarting the server?
Why did RT comment the save configuration item in redis.conf? After restarting the server, the last written data is still stored in redis? After I finished annotating, I also cleared all the data in the library, but after a few days, I suddenly found that the data written before restarting was still there after restarting the server. I checked the configuration file again and found that there was no problem. ah. . .

Reply content:

Why is the save configuration item commented in redis.conf and the last written data is still stored in redis after restarting the server?
Why did RT comment the save configuration item in redis.conf? After restarting the server, the last written data is still stored in redis? After I finished annotating, I also cleared all the data in the library, but after a few days, I suddenly found that the data written before restarting was still there after restarting the server. I checked the configuration file again and found that there was no problem. ah. . .

You probably haven’t deleted the file persisted by redis. The default name is dump.rdb

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn