Refactoring the cache class.
This commit is contained in:
parent
130772ca57
commit
ee5212a27f
|
@ -54,7 +54,10 @@ public static function driver($driver = null)
|
|||
*/
|
||||
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)))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue