MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getCachedSettingsForSource

Function getCachedSettingsForSource

src/utils/settings/settingsCache.ts:22–27  ·  view source on GitHub ↗
(
  source: SettingSource,
)

Source from the content-addressed store, hash-verified

20const perSourceCache = new Map<SettingSource, SettingsJson | null>()
21
22export function getCachedSettingsForSource(
23 source: SettingSource,
24): SettingsJson | null | undefined {
25 // undefined = cache miss; null = cached "no settings for this source"
26 return perSourceCache.has(source) ? perSourceCache.get(source) : undefined
27}
28
29export function setCachedSettingsForSource(
30 source: SettingSource,

Callers 1

getSettingsForSourceFunction · 0.85

Calls 2

getMethod · 0.65
hasMethod · 0.45

Tested by

no test coverage detected