readis操作

来源:转载

1. 删除readis

 $Ranking = $this->Redis->_delete('lianmengname');

2. 读取readis缓存

 $Ranking = $this->Redis->_get('lianmengname');

3. 存readis

if(empty($Ranking)){ $Ranking = $this->DoubleAct->selectRanking(); $this->Redis->_set('lianmengname',json_encode($Ranking),1800);//缓存半小时 }

分享给朋友:
您可能感兴趣的文章:
随机阅读:
栏目列表
推荐内容