One of my laravel projects uses redis, and the keys in it will be automatically cleared after a while. I asked Alibaba Cloud to check the logs and found that flushdb was executed. We didn't execute flushdb manually at all, so does laravel automatically clear the redis cache? Cleared the entire redis?
Check if it is executed
php artisan cache:clear
Is it possible that the cache setting’s expiration date has expired? Then it was cleaned up.
Look at the validity period of the cache configuration