Skip to content

Commit

Permalink
Merge pull request #36 from PRTIMES/feature/combine-front-and-back
Browse files Browse the repository at this point in the history
Redisの導入
  • Loading branch information
kyoya0819 authored Aug 30, 2024
2 parents 24dc161 + 4864500 commit 48774ec
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 13 deletions.
3 changes: 2 additions & 1 deletion backend/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"laravel/framework": "^11.9",
"laravel/sanctum": "^4.0",
"laravel/tinker": "^2.9",
"openai-php/client": "^0.10.1"
"openai-php/client": "^0.10.1",
"predis/predis": "^2.2"
},
"require-dev": {
"barryvdh/laravel-ide-helper": "^3.1",
Expand Down
65 changes: 63 additions & 2 deletions backend/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 5 additions & 10 deletions backend/config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,14 @@
*/

'redis' => [
'driver' => env('REDIS_DRIVER', 'redis'),
'connection' => 'default',

'client' => env('REDIS_CLIENT', 'phpredis'),
'client' => env('REDIS_CLIENT', 'predis'),

'options' => [
'cluster' => env('REDIS_CLUSTER', 'redis'),
'scheme' => 'tls',
'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'),
],

Expand All @@ -157,15 +160,7 @@
'password' => env('REDIS_PASSWORD'),
'port' => env('REDIS_PORT', '6379'),
'database' => env('REDIS_DB', '0'),
],

'cache' => [
'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' => env('REDIS_CACHE_DB', '1'),
'scheme' => env('REDIS_SCHEME', 'tls'),
],

],
Expand Down

0 comments on commit 48774ec

Please sign in to comment.