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

Function writeThroughGlobalConfigCache

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

Source from the content-addressed store, hash-verified

1045// the file's real mtime (Date.now() is recorded after the write) so the
1046// freshness watcher skips re-reading our own write on its next tick.
1047function writeThroughGlobalConfigCache(config: GlobalConfig): void {
1048 globalConfigCache = { config, mtime: Date.now() }
1049 lastReadFileStats = null
1050}
1051
1052export function getGlobalConfig(): GlobalConfig {
1053 if (process.env.NODE_ENV === 'test') {

Callers 2

saveGlobalConfigFunction · 0.85
saveCurrentProjectConfigFunction · 0.85

Calls 1

nowMethod · 0.80

Tested by

no test coverage detected