diff --git a/config/cache.php b/config/cache.php index fa12e5e4..6c4629d2 100644 --- a/config/cache.php +++ b/config/cache.php @@ -70,7 +70,7 @@ return [ 'redis' => [ 'driver' => 'redis', - 'connection' => 'default', + 'connection' => 'cache', ], ], diff --git a/config/database.php b/config/database.php index cab5d068..c60c8855 100644 --- a/config/database.php +++ b/config/database.php @@ -112,7 +112,14 @@ return [ 'host' => env('REDIS_HOST', '127.0.0.1'), 'password' => env('REDIS_PASSWORD', null), 'port' => env('REDIS_PORT', 6379), - 'database' => 0, + 'database' => env('REDIS_DB', 0), + ], + + 'cache' => [ + 'host' => env('REDIS_HOST', '127.0.0.1'), + 'password' => env('REDIS_PASSWORD', null), + 'port' => env('REDIS_PORT', 6379), + 'database' => env('REDIS_CACHE_DB', 1), ], ],