diff options
Diffstat (limited to 'overview.php')
-rw-r--r-- | overview.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/overview.php b/overview.php index 3d73bc0..ac488a2 100644 --- a/overview.php +++ b/overview.php @@ -13,13 +13,7 @@ foreach ($config['servers'] as $i => $server) { } // Setup a connection to this Redis server. - $redis->close(); - - try { - $redis->connect($server['host'], $server['port']); - } catch (Exception $e) { - die('ERROR: Could not connect to Redis ('.$server['host'].':'.$server['port'].')'); - } + $redis = new Predis\Client('tcp://'.$server['host'].':'.$server['port']); if (isset($server['auth'])) { |