Skip to content

Commit

Permalink
Make redis auth optional
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonXLF committed Sep 8, 2022
1 parent cd72ada commit 9f4bb73
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion includes/Title.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ private function getNamespaceInfo($namespace) {
$redis = new Redis;

$redis->connect(Config::get('redis-server'), Config::get('redis-port'));
$redis->auth(Config::get('redis-auth'));

$redisAuth = Config::get('redis-auth');

if ($redisAuth) {
$redis->auth($redisAuth);
}

$redis->close();

Expand Down

0 comments on commit 9f4bb73

Please sign in to comment.