(1) Because redis is based on memory, the content in redis will be cleared after restart
1 Enter redis redis.conf file edit command
appendonly yes
2 esc shitf + zz Exit to save the edited content
‘
Choose to bear
Don't think about it