Level 54
@shiva you can call
Cache::flush();
to clear redis cache.
https://laravel.com/docs/8.x/cache#removing-items-from-the-cache
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm using Redis for my site and I was wondering if there is a way to clear it. For example Redis::clear() or something like that.
The reason being is that while I'm testing my Redis keeps incrementing and I would like to clear it.
I've tried cache:clear, config:clear, event:clear, horizon:clear and queue:clear, but neither of them clears Redis
Please or to participate in this conversation.