Wraps an Octokit repos.get-style call with ETag caching and request deduplication.
repos.get
Usage:
const data = await cachedRequest(cache, octokit, '/repos/owner/repo', () => octokit.repos.get({ owner, repo: name }),); Copy
const data = await cachedRequest(cache, octokit, '/repos/owner/repo', () => octokit.repos.get({ owner, repo: name }),);
If-None-Match
Wraps an Octokit
repos.get-style call with ETag caching and request deduplication.Usage:
If-None-Match. On 304, returns the cached body without consuming a rate-limit point.