What is stored in redis is the scheduled task of celery, so does redis need to be persisted?

Hello, everyone
I am a novice

I think running redis, in docker is very convenient for development and deployment
I recently made a website that used redis and celery

but I am worried that docker restart or physical machine restart will cause redis to lose data

is it necessary to persist redis?

what is the best solution for persistence

Mar.25,2021

Redis can be placed outside the container, installed directly on the physical machine, and then RDB, AOF

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b111-4d901.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b111-4d901.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?