shadrix
2 months ago
151
0
Servers

Redis: Usually you are renaming the command 'FLUSHDB'. What should I do, when I set cache to redis?

Posted 2 months ago by shadrix

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 sign in or create an account to participate in this conversation.