diff --git a/config/cache.php b/config/cache.php index 88129848e..db2925e13 100644 --- a/config/cache.php +++ b/config/cache.php @@ -85,11 +85,29 @@ return [ 'database' => env('REDIS_DATABASE', 0), ], + 'session' => [ + 'scheme' => env('REDIS_SCHEME', 'tcp'), + 'path' => env('REDIS_PATH'), + 'host' => env('REDIS_HOST', '127.0.0.1'), + 'password' => env('REDIS_PASSWORD', null), + 'port' => env('REDIS_PORT', 6379), + 'database' => env('REDIS_DATABASE_SESSION', 1), + ], + + 'pulse' => [ + 'scheme' => env('REDIS_SCHEME', 'tcp'), + 'path' => env('REDIS_PATH'), + 'host' => env('REDIS_HOST', '127.0.0.1'), + 'password' => env('REDIS_PASSWORD', null), + 'port' => env('REDIS_PORT', 6379), + 'database' => env('REDIS_DATABASE_PULSE', 2), + ], + ], 'redis:session' => [ 'driver' => 'redis', - 'connection' => 'default', + 'connection' => 'session', 'prefix' => 'pf_session', ], diff --git a/config/database.php b/config/database.php index 92d6a2ba2..2a3cf3393 100644 --- a/config/database.php +++ b/config/database.php @@ -143,6 +143,24 @@ return [ 'database' => env('REDIS_DATABASE', 0), ], + 'session' => [ + 'scheme' => env('REDIS_SCHEME', 'tcp'), + 'path' => env('REDIS_PATH'), + 'host' => env('REDIS_HOST', '127.0.0.1'), + 'password' => env('REDIS_PASSWORD', null), + 'port' => env('REDIS_PORT', 6379), + 'database' => env('REDIS_DATABASE_SESSION', 1), + ], + + 'pulse' => [ + 'scheme' => env('REDIS_SCHEME', 'tcp'), + 'path' => env('REDIS_PATH'), + 'host' => env('REDIS_HOST', '127.0.0.1'), + 'password' => env('REDIS_PASSWORD', null), + 'port' => env('REDIS_PORT', 6379), + 'database' => env('REDIS_DATABASE_PULSE', 2), + ], + ], 'dbal' => [