diff options
author | Erik Dubbelboer <erik@dubbelboer.com> | 2012-08-19 18:31:15 +0400 |
---|---|---|
committer | Erik Dubbelboer <erik@dubbelboer.com> | 2012-08-19 18:31:15 +0400 |
commit | 306b73dfb8e13d2a9f1c2da1c7f7bc8ddf7777ea (patch) | |
tree | 6788d94ca7462fc7a38aa1b8710415c99fba3356 /overview.php | |
parent | 9fcb29db0d6753a6645d964b01b9a3087f3b3811 (diff) |
Now usable without php module.
- Changed phpredis to predis.
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'])) { |