MCPcopy Create free account
hub / github.com/Noumena-Network/code / writeThroughGlobalConfigCache

Function writeThroughGlobalConfigCache

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

Source from the content-addressed store, hash-verified

1111// the file's real mtime (Date.now() is recorded after the write) so the
1112// freshness watcher skips re-reading our own write on its next tick.
1113function writeThroughGlobalConfigCache(config: GlobalConfig): void {
1114 globalConfigCache = { config, mtime: Date.now() }
1115 lastReadFileStats = null
1116}
1117
1118export function getGlobalConfig(): GlobalConfig {
1119 if (process.env.NODE_ENV === 'test') {

Callers 2

saveGlobalConfigFunction · 0.85
saveCurrentProjectConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected