Commit 873dd153 by Taylor Otwell

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

Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
parent cb5fdeae
......@@ -54,6 +54,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.
*
* <code>
......
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