From ebccd4bc4bc2802fbb26d05879f4239f02f85ec1 Mon Sep 17 00:00:00 2001 From: Tinywan Date: Mon, 31 Oct 2016 09:01:27 +0800 Subject: [PATCH 1/2] Update DataBaseController.class.php --- Backend/Home/Controller/DataBaseController.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Backend/Home/Controller/DataBaseController.class.php b/Backend/Home/Controller/DataBaseController.class.php index 5fd840d..481234e 100644 --- a/Backend/Home/Controller/DataBaseController.class.php +++ b/Backend/Home/Controller/DataBaseController.class.php @@ -60,6 +60,7 @@ public function localhostRedis() $redis->connect('127.0.0.1'); $keys = $redis->keys('*'); var_dump($keys); + var_dump($keys); } /** @@ -353,4 +354,4 @@ public function addAll($dataList, $options = array(), $replace = false) return $result; } -} \ No newline at end of file +} From 7782f53ca1c257d1547a163553d3c9d37701e9a7 Mon Sep 17 00:00:00 2001 From: Tinywan Date: Mon, 31 Oct 2016 09:02:13 +0800 Subject: [PATCH 2/2] updata database local and line updata database local and line --- Backend/Home/Controller/DataBaseController.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Backend/Home/Controller/DataBaseController.class.php b/Backend/Home/Controller/DataBaseController.class.php index 481234e..5b4ea3e 100644 --- a/Backend/Home/Controller/DataBaseController.class.php +++ b/Backend/Home/Controller/DataBaseController.class.php @@ -14,6 +14,7 @@ public function index() $redis->select(1); $redisInfo = $redis->lRange('message01', 0, 10); var_dump($redisInfo); + var_dump($redisInfo); } /** @@ -47,6 +48,7 @@ public function SlaveTwoInstance() $redis->select(1); $redisInfo = $redis->lRange('message01', 0, 6); var_dump($redisInfo); + var_dump($redisInfo); } /** @@ -60,7 +62,6 @@ public function localhostRedis() $redis->connect('127.0.0.1'); $keys = $redis->keys('*'); var_dump($keys); - var_dump($keys); } /**