get($key); if (is_null($item)) { return is_callable($default) ? call_user_func($default) : $default; } return $item; } /** * Pass all other methods to the default driver. * * Passing method calls to the driver instance provides a better API for the * developer. For instance, instead of saying Cache::driver()->foo(), we can * now just say Cache::foo(). */ public static function __callStatic($method, $parameters) { return call_user_func_array(array(static::driver(), $method), $parameters); } }