public function cache($url, array $options = null)
    {
        $lifetime = array_get($options, 'lifetime', 60);

        array_forget($options, 'lifetime');

        $self = $this;

        return $this->cache->remember($url, $lifetime, function() use ($self, $url, $options)
        {
			return $self->get($url, $options);
        });
    }
public function cache($url, array $options = null)
    {
        $lifetime = array_get($options, 'lifetime', 60);

        array_forget($options, 'lifetime');

        $self = $this;

        return $this->cache->remember($url, $lifetime, function() use ($self, $url, $options)
        {
			return $self->get($url, $options);
        });
    }
public function cache ( $ url , array $ options = null ) { $ lifetime = array_get ( $ options , 'lifetime' , 60 ) ; array_forget ( $ options , 'lifetime' ) ; $ self = $ this ; return $ this -> cache -> remember ( $ url , $ lifetime , function ( ) use ( $ self , $ url , $ options ) { return $ self -> get ( $ url , $ options ) ; } ) ; }
Get info from a specify url and cache that using laravel cache manager.

@param  string       $url
@param  null|array   $options
@return mixed
Get info from a specify url and cache that using laravel cache manager .