diff --git a/config/cache.php b/config/cache.php index ff3c2cd..89e226f 100644 --- a/config/cache.php +++ b/config/cache.php @@ -77,6 +77,12 @@ 'lock_connection' => 'default', ], + 'redis_2' => [ + 'driver' => 'redis', + 'connection' => 'cache_2', + 'lock_connection' => 'default', + ], + 'dynamodb' => [ 'driver' => 'dynamodb', 'key' => env('AWS_ACCESS_KEY_ID'), diff --git a/config/database.php b/config/database.php index 7990c0d..c5fda68 100644 --- a/config/database.php +++ b/config/database.php @@ -135,6 +135,17 @@ 'persistent' => true, ], + + 'cache_2' => [ + 'url' => env('REDIS_URL'), + 'host' => env('REDIS_HOST', '127.0.0.1'), + 'username' => env('REDIS_USERNAME'), + 'password' => env('REDIS_PASSWORD'), + 'port' => env('REDIS_PORT', '6379'), + 'database' => 2, + 'persistent' => true, + ], + ], ]; diff --git a/config/laravel-model-caching.php b/config/laravel-model-caching.php new file mode 100644 index 0000000..24bd546 --- /dev/null +++ b/config/laravel-model-caching.php @@ -0,0 +1,11 @@ + '', + + 'enabled' => env('MODEL_CACHE_ENABLED', true), + + 'use-database-keying' => env('MODEL_CACHE_USE_DATABASE_KEYING', true), + + 'store' => 'redis_2', +];