rememberForever() public method

Get an item from the cache, or store the default value forever.
public rememberForever ( string $key, Closure $callback ) : mixed
$key string
$callback Closure
return mixed
Beispiel #1
0
 /**
  * Get an item from the cache, or store the default value forever.
  *
  * @param  string  $key
  * @param  Closure $callback
  *
  * @return mixed
  */
 public function rememberForever($key, Closure $callback)
 {
     return $this->adapter->rememberForever($key, $callback);
 }