$Ranking = $this->Redis->_delete('lianmengname');
2. 读取readis缓存
$Ranking = $this->Redis->_get('lianmengname');
3. 存redis
if(empty($Ranking)){ $Ranking = $this->DoubleAct->selectRanking(); $this->Redis->_set('lianmengname',json_encode($Ranking),1800);//缓存半小时 }
以上就是redis操作有哪几种的详细内容,更多请关注二当家的素材网其它相关文章!
友情提示:垃圾评论一律封号 加我微信:826096331拉你进VIP群学习群