$authRule = cache('authRule');
if(!$authRule){
$authRule = db('auth_rule')->where('level<2')->order('sort desc')->select();
cache('authRule', $authRule, 3600);
}
TP5缓存的用法
猜你喜欢
转载自blog.csdn.net/heyuqing32/article/details/81407968
今日推荐
周排行