I had the exact same problem, and I solved it as follows:
Redis allows you to have different databases, identified by a number. By default you have 16 databases (remember, this is 0-15, not 1-16!).
Open your config/database.php and specifiy a different database number, and problem solved ;-) As usual, Laravel has us covered!
Sidenote: This also allows us to use different configured connections for the session and cache drivers, which has the added benefit of not clearing out your session data when running cache:clear. Just open up config/session.php and change the connection value to whatever you named your new connection in database.php
Here is how my config/database.php:
'redis' => [
'client' => 'predis',
'cluster' => false,
'default' => [
'host' => env('REDIS_HOST', 'localhost'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
'database' => env('REDIS_DB_NUM', 0),
'read_timeout' => 60,
],
'session' => [
'host' => env('REDIS_HOST', 'localhost'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
'database' => env('REDIS_DB_SESSION_NUM', 1),
'read_timeout' => 60,
],
],
Please note that REDIS_DB_NUM and REDIS_DB_SESSION_NUM are custom env variables that I like to use, there not laravel specific, just in case someone wonders...;-)