diff --git a/config/cache.php b/config/cache.php index fec7492..581aff2 100644 --- a/config/cache.php +++ b/config/cache.php @@ -1,29 +1,27 @@ "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__", ] ] diff --git a/config/database.php b/config/database.php index c9736f8..a47a165 100644 --- a/config/database.php +++ b/config/database.php @@ -14,7 +14,7 @@ /** * The migration memory table */ - 'migration' => 'bow_migration_status', + 'migration' => 'migrations', /** * The database on which the default application will connect. @@ -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'), ] ];