示例#1
0
文件: fragment.php 项目: ajb/rfpez
 /**
  * Get the contents of a fragment cache.
  *
  * @param  string   $key
  * @param  Closure  $callback
  */
 public static function sear($key, Closure $callback)
 {
     return Cache::sear($key, function () use($callback) {
         return Fragment::execute($callback);
     });
 }