MCPcopy
hub / github.com/codeaashu/claude-code / writeThroughGlobalConfigCache

Function writeThroughGlobalConfigCache

src/utils/config.ts:1039–1042  ·  view source on GitHub ↗
(config: GlobalConfig)

Source from the content-addressed store, hash-verified

1037// the file's real mtime (Date.now() is recorded after the write) so the
1038// freshness watcher skips re-reading our own write on its next tick.
1039function writeThroughGlobalConfigCache(config: GlobalConfig): void {
1040 globalConfigCache = { config, mtime: Date.now() }
1041 lastReadFileStats = null
1042}
1043
1044export function getGlobalConfig(): GlobalConfig {
1045 if (process.env.NODE_ENV === 'test') {

Callers 2

saveGlobalConfigFunction · 0.85
saveCurrentProjectConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected