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.
1 parent dcabad5 commit 7a7f55aCopy full SHA for 7a7f55a
README.markdown
@@ -66,7 +66,16 @@ From `$client` object, you can access to all GitHub.
66
// This file is generated by Composer
67
require_once 'vendor/autoload.php';
68
69
-$client = new Github\Client(new CachedHttpClient(new FilesystemCache('/tmp/github-api-cache')));
+$client = new Github\Client(
70
+ new Github\HttpClient\CachedHttpClient(array('cache_dir' => '/tmp/github-api-cache')
71
+);
72
+
73
+// Or select directly which cache you want to use
74
75
+ new Github\HttpClient\CachedHttpClient(
76
+ new Github\HttpClient\Cache\FilesystemCache('/tmp/github-api-cache')
77
+ )
78
79
```
80
81
Using cache, the client will get cached responses if resources haven't changed since last time,
0 commit comments