Commit 873dd153 authored by Taylor Otwell's avatar Taylor Otwell

Added Cache::forever method to cache something for five years.

Signed-off-by: 's avatarTaylor Otwell <taylorotwell@gmail.com>
parent cb5fdeae
......@@ -53,6 +53,18 @@ abstract class Driver {
*/
abstract public function put($key, $value, $minutes);
/**
* Write an item to the cache for five years.
*
* @param string $key
* @param mixed $value
* @return void
*/
public function forever($key, $value)
{
return $this->put($key, $value, 2628000);
}
/**
* Get an item from the cache, or cache and return the default value.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment