|
@@ -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;
|