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 /index.php | |
parent | 9fcb29db0d6753a6645d964b01b9a3087f3b3811 (diff) |
Now usable without php module.
- Changed phpredis to predis.
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -65,20 +65,14 @@ if (count($_GET) == 0) { // Recursive function used to print the namespaces. function print_namespace($item, $name, $fullkey, $islast) { - global $config, $redistypes, $server, $redis; + global $config, $server, $redis; // Is this also a key and not just a namespace? if (isset($item['__phpredisadmin__'])) { // Unset it so we won't loop over it when printing this namespace. unset($item['__phpredisadmin__']); - $type = $redis->type($fullkey); - - if (!isset($redistypes[$type])) { - return; - } - - $type = $redistypes[$type]; + $type = $redis->type($fullkey); $class = array(); $len = false; @@ -97,7 +91,7 @@ function print_namespace($item, $name, $fullkey, $islast) { break; case 'list': - $len = $redis->lSize($fullkey); + $len = $redis->lLen($fullkey); break; case 'set': |