47 public function request($method, $uri, array $options = [])
50 return $this->cache->remember($this->
getKey($method, $uri, $options), 7200,
function() use ($method, $uri, $options){
66 private function getKey($method, $uri, $options)
68 return self::class.$method.$uri.json_encode($options);
79 return in_array(strtoupper($method), [
'GET',
'HEAD',
'OPTIONS',
'TRACE']);
94 return $this->client->request($method, $uri, $options);
request($method, $uri, array $options=[])
getKey($method, $uri, $options)
__construct(Client $client, Cache $cache)
forwardCall($method, $uri, $options)