New Filestructure for Docker
This commit is contained in:
@@ -38,11 +38,11 @@ function connectToRedis(): bool
|
||||
|
||||
$redis = new Redis();
|
||||
|
||||
if (!$redis->connect($_ENV['REDDIS_HOST'], $_ENV['REDDIS_PORT'])) {
|
||||
if (!$redis->connect($_ENV['REDIS_HOST'], $_ENV['REDIS_PORT'])) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!$redis->auth($_ENV['REDDIS_PASSWORD'])) {
|
||||
if (!$redis->auth($_ENV['REDIS_PASSWORD'])) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user