search

Home  >  Q&A  >  body text

php - Will laravel automatically clear the cache in redis?

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?

漂亮男人漂亮男人2767 days ago669

reply all(3)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-16 13:16:46

    Check if it is executed php artisan cache:clear

    reply
    0
  • ringa_lee

    ringa_lee2017-05-16 13:16:46

    Is it possible that the cache setting’s expiration date has expired? Then it was cleaned up.

    reply
    0
  • 世界只因有你

    世界只因有你2017-05-16 13:16:46

    Look at the validity period of the cache configuration

    reply
    0
  • Cancelreply