Use seperate cache DB for Redis

This commit is contained in:
Barry vd. Heuvel 2018-05-23 15:24:27 +02:00
parent a14e62325c
commit c3b99e971c
2 changed files with 9 additions and 2 deletions

View File

@ -70,7 +70,7 @@ return [
'redis' => [
'driver' => 'redis',
'connection' => 'default',
'connection' => 'cache',
],
],

View File

@ -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),
],
],