Refactoring the cache class.

This commit is contained in:
Taylor Otwell
2011-08-08 10:38:40 -05:00
parent 130772ca57
commit ee5212a27f

View File

@@ -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)))
{