dever 6 年之前
父节点
当前提交
20a4ad3a09
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      main/src/Content.php

+ 2 - 2
main/src/Content.php

@@ -149,11 +149,11 @@ class Content extends Core
         $key = 'test_';
 
         for($i=0; $i<= 10000;$i++) {
-            $this->redis->set($key . $i, $i, $expire);
+            $redis->set($key . $i, $i, $expire);
         }
 
         for($i=0; $i<= 10000;$i++) {
-            $data[] = $this->redis->get($key . $i);
+            $data[] = $redis->get($key . $i);
         }
 
         print_r($data);die;