MCPcopy Create free account
hub / github.com/google-gemini/gemini-cli / set

Method set

packages/cli/src/utils/persistentState.ts:75–82  ·  view source on GitHub ↗
(
    key: K,
    value: PersistentStateData[K],
  )

Source from the content-addressed store, hash-verified

73 }
74
75 set<K extends keyof PersistentStateData>(
76 key: K,
77 value: PersistentStateData[K],
78 ): void {
79 this.load(); // ensure loaded
80 this.cache![key] = value;
81 this.save();
82 }
83}
84
85export const persistentState = new PersistentState();

Callers 15

getSessionFilesFunction · 0.45
cleanup.test.tsFile · 0.45
safeEmitNetworkMethod · 0.45
patchGlobalFetchMethod · 0.45
wrapRequestMethod · 0.45
linkSkillFunction · 0.45
onMethod · 0.45
handleUpdateFunction · 0.45
toMatchSvgSnapshotFunction · 0.45
AppRig.tsxFile · 0.45
constructorMethod · 0.45

Calls 2

loadMethod · 0.95
saveMethod · 0.95

Tested by 1

onMethod · 0.36