Added proper cache::forever implementations to each driver.
Signed-off-by: Taylor Otwell <[email protected]>
This commit is contained in:
Vendored
+12
@@ -87,6 +87,18 @@ class Database extends Driver {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 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);
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete an item from the cache.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user