Browse Source

测试用方法

lizhen_gitee 3 years ago
parent
commit
61d0039867
1 changed files with 9 additions and 1 deletions
  1. 9 1
      application/index/controller/Index.php

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

@@ -3,7 +3,7 @@
 namespace app\index\controller;
 
 use app\common\controller\Frontend;
-
+use think\Db;
 class Index extends Frontend
 {
 
@@ -11,6 +11,14 @@ class Index extends Frontend
     protected $noNeedRight = '*';
     protected $layout = '';
 
+    public function testredis(){
+        $list = Db::name('user')->column('id');
+        foreach($list as $key => $id){
+            $a = redis_matching_set($id,0);
+        }
+
+    }
+
 
     public function test1(){
         // 文本加一个回车