Skip to content

Commit

Permalink
Update redis configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
papac committed Jun 6, 2023
1 parent 8216f8e commit 20dd483
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
12 changes: 5 additions & 7 deletions config/cache.php
Original file line number Diff line number Diff line change
@@ -1,29 +1,27 @@
<?php

return [
// Define the default store
"default" => "file",

"stores" => [
// The filesystem connection
"file" => [
"driver" => "file",
"path" => __DIR__ . '/../var/cache'
],

// The database connection
"database" => [
"driver" => "database",
"connection" => app_env('DB_DEFAULT', 'mysql'),
"table" => "caches",
],

// The redis connection
"redis" => [
'driver' => 'redis',
'host' => app_env('REDIS_HOSTNAME', '127.0.0.1'),
'port' => app_env('REDIS_PORT', 6379),
'timeout' => 2.5,
'ssl' => false,
'username' => app_env('REDIS_USERNAME'),
'password' => app_env('REDIS_PASSWORD'),
'database' => app_env('REDIS_CACHE_DB', '1'),
'database' => app_env('REDIS_CACHE_DB', 5),
"prefix" => "__app__",
]
]
Expand Down
18 changes: 16 additions & 2 deletions config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/**
* The migration memory table
*/
'migration' => 'bow_migration_status',
'migration' => 'migrations',

/**
* The database on which the default application will connect.
Expand Down Expand Up @@ -66,6 +66,20 @@
'charset' => app_env('DB_CHARSET', 'utf8'),
'prefix' => app_env('DB_PREFIX', ''),
'foreign_key_constraints' => app_env('DB_FOREIGN_KEYS', true),
]
],
],

/**
* Connexion redis
*/
"redis" => [
'driver' => 'redis',
'host' => app_env('REDIS_HOSTNAME', '127.0.0.1'),
'port' => app_env('REDIS_PORT', 6379),
'timeout' => 2.5,
'ssl' => false,
'username' => app_env('REDIS_USERNAME'),
'password' => app_env('REDIS_PASSWORD'),
'database' => app_env('REDIS_CACHE_DB', '1'),
]
];

0 comments on commit 20dd483

Please sign in to comment.