We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8dcee8f + 1d93776 commit ec56535Copy full SHA for ec56535
lib/Github/Client.php
@@ -402,12 +402,14 @@ public function addHeaders(array $headers)
402
403
/**
404
* Add a cache plugin to cache responses locally.
405
+ *
406
* @param CacheItemPoolInterface $cache
407
+ * @param array $config
408
*/
- public function addCache(CacheItemPoolInterface $cachePool)
409
+ public function addCache(CacheItemPoolInterface $cachePool, array $config = [])
410
{
411
$this->removeCache();
- $this->addPlugin(new Plugin\CachePlugin($cachePool, $this->streamFactory));
412
+ $this->addPlugin(new Plugin\CachePlugin($cachePool, $this->streamFactory, $config));
413
}
414
415
0 commit comments