Response caching #2643
reny-gearset
started this conversation in
Ideas
Replies: 1 comment
-
Initial attempt to implement the caching layer: #2648 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Can we provide a way to cache the response by passing in https://github.com/nigel-sampson/octokit.caching/blob/master/Octokit.Caching/ICache.cs into the GithubClient constructor?
The caching interface can be more specific as follows:
public async Task<IResponse?> GetAsync(IRequest request)
public async Task SetAsync(IRequest request, IResponse response)
Project reference:
https://github.com/nigel-sampson/octokit.caching
https://github.com/nigel-sampson/octokit.caching/blob/master/Octokit.Caching/CachingHttpClient.cs
Beta Was this translation helpful? Give feedback.
All reactions