MCPcopy Index your code
hub / github.com/github/docs / getChangelogCacheKey

Function getChangelogCacheKey

lib/changelog.js:68–72  ·  view source on GitHub ↗
(prefix, feedUrl)

Source from the content-addressed store, hash-verified

66const globalCache = new Map()
67
68function getChangelogCacheKey(prefix, feedUrl) {
69 // Return a string that is only letters so it's safe to use this
70 // for the filename when caching to disk.
71 return `${prefix || ''}${feedUrl}`.replace(/[^a-z]+/gi, '')
72}
73
74function getDiskCachePath(prefix, feedUrl) {
75 // When in local development or in tests, use disk caching

Callers 3

getDiskCachePathFunction · 0.85
setChangelogItemsCacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected