Updated Redis config

Change-Id: I900a491f5e296a6a7af44938bff5911b6566bb55
Signed-off-by: smarcet <smarcet@gmail.com>
This commit is contained in:
smarcet 2021-01-11 23:48:20 -03:00
parent 41dbd8de94
commit b53af79f93
3 changed files with 23 additions and 4 deletions

View File

@ -60,7 +60,7 @@ return [
'redis' => [
'driver' => 'redis',
'connection' => 'default',
'connection' => env('CACHE_REDIS_CONN', 'cache'),
],
],

View File

@ -105,14 +105,33 @@ return [
*/
'redis' => [
/*
* @see https://github.com/predis/predis/wiki/Connection-Parameters
*/
'cluster' => false,
'default' => [
'host' => env('REDIS_HOST'),
'port' => env('REDIS_PORT'),
'database' => env('REDIS_DB', 0),
'database' => 0,
'password' => env('REDIS_PASSWORD'),
'timeout' => env('REDIS_TIMEOUT', 30.0)
],
'cache' => [
'host' => env('REDIS_HOST'),
'port' => env('REDIS_PORT'),
'database' => 0,
'password' => env('REDIS_PASSWORD'),
'timeout' => env('REDIS_TIMEOUT', 30.0)
],
'session' => [
'host' => env('REDIS_HOST'),
'port' => env('REDIS_PORT'),
'database' => 1,
'password' => env('REDIS_PASSWORD'),
'timeout' => env('REDIS_TIMEOUT', 30.0)
],
],

View File

@ -70,7 +70,7 @@ return [
|
*/
'connection' => null,
'connection' => env('SESSION_CONNECTION', 'session'),
/*
|--------------------------------------------------------------------------