initial: bootstrap from BukidBountyApp base
This commit is contained in:
23
config/autoload/redis.php
Normal file
23
config/autoload/redis.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
return [
|
||||
'default' => [
|
||||
'host' => env('REDIS_HOST', 'host.docker.internal'),
|
||||
'auth' => (env('REDIS_AUTH') ?: env('REDIS_PASSWORD')) ?: null,
|
||||
'port' => (int) env('REDIS_PORT', 5433),
|
||||
'db' => (int) env('REDIS_DB', 0),
|
||||
'pool' => [
|
||||
'min_connections' => 1,
|
||||
'max_connections' => 10,
|
||||
'connect_timeout' => 10.0,
|
||||
'wait_timeout' => 3.0,
|
||||
'heartbeat' => -1,
|
||||
'max_idle_time' => (float) env('REDIS_MAX_IDLE_TIME', 60),
|
||||
],
|
||||
],
|
||||
|
||||
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user