示例#1
0
 /**
  * Get an item from the cache, or store the default value forever.
  *
  * @param  string   $key
  * @param  \Closure  $callback
  * @return mixed
  */
 public function sear($key, Closure $callback)
 {
     if (is_array($key)) {
         return $this->searMany($key, $callback);
     }
     return parent::sear($key, $callback);
 }