Aug 26, 2020
0
Level 12
Redis: Usually you are renaming the command 'FLUSHDB'. What should I do, when I set cache to redis?
In Laravel, you can set the cache to Redis. However, when I clear the cache with php artisan cache:clear, I get the error: ERR unknown command 'FLUSHDB'
Obviously, because I renamed the command (it's best practice).
But now I'm confused. I cannot use Redis in this case. Should I rename it back so I can use Redis as cache?
Please or to participate in this conversation.