remember() public method

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