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 0694a49 commit 977dc58Copy full SHA for 977dc58
README.markdown
@@ -58,6 +58,21 @@ $repositories = $client->api('user')->repositories('ornicar');
58
59
From `$client` object, you can access to all GitHub.
60
61
+## Cache usage
62
+
63
+```php
64
+<?php
65
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')));
70
+```
71
72
+Using cache, the client will get cached responses if resources haven't changed since last time,
73
+**without** reaching the `X-Rate-Limit` [imposed by github](http://developer.github.com/v3/#rate-limiting).
74
75
76
## Documentation
77
78
See the `doc` directory for more detailed documentation.
0 commit comments