Example #1
0
 public static function getHot()
 {
     if (!Cache::has(GlobalVar::$HOT_CACHE)) {
         $bili_util = new BiliUtil();
         $hot_list = $bili_util->getHot();
         Cache::add(GlobalVar::$HOT_CACHE, $hot_list, 60 * 5);
     } else {
         $hot_list = Cache::get(GlobalVar::$HOT_CACHE);
     }
     return $hot_list;
 }