lizhen_gitee преди 3 години
родител
ревизия
8b737e13ae
променени са 1 файла, в които са добавени 8 реда и са изтрити 1 реда
  1. 8 1
      application/index/controller/Index.php

+ 8 - 1
application/index/controller/Index.php

@@ -11,10 +11,17 @@ class Index extends Frontend
     protected $noNeedRight = '*';
     protected $layout = '';
 
-    public function testredis(){
+    public function showredis(){
         $list = Db::name('user')->column('id');
         foreach($list as $key => $id){
             dump($id.':'.redis_matching_get($id));
+        }
+        exit;
+    }
+
+    public function clearredis(){
+        $list = Db::name('user')->column('id');
+        foreach($list as $key => $id){
             $a = redis_matching_set($id,0);
         }
         exit;