Commit ee5212a2 authored by Taylor Otwell's avatar Taylor Otwell

Refactoring the cache class.

parent 130772ca
......@@ -54,7 +54,10 @@ class Cache {
*/
public static function get($key, $default = null, $driver = null)
{
if (is_null($driver)) $driver = Config::get('cache.driver');
if (is_null($driver))
{
$driver = Config::get('cache.driver');
}
if (is_null($item = static::driver($driver)->get($key)))
{
......
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