Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/erikdubbelboer/phpRedisAdmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Dubbelboer <erik@dubbelboer.com>2012-08-19 18:31:15 +0400
committerErik Dubbelboer <erik@dubbelboer.com>2012-08-19 18:31:15 +0400
commit306b73dfb8e13d2a9f1c2da1c7f7bc8ddf7777ea (patch)
tree6788d94ca7462fc7a38aa1b8710415c99fba3356 /index.php
parent9fcb29db0d6753a6645d964b01b9a3087f3b3811 (diff)
Now usable without php module.
- Changed phpredis to predis.
Diffstat (limited to 'index.php')
-rw-r--r--index.php12
1 files changed, 3 insertions, 9 deletions
diff --git a/index.php b/index.php
index 999596f..12a1cf2 100644
--- a/index.php
+++ b/index.php
@@ -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':