MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / set

Method set

static/local.ts:102–106  ·  view source on GitHub ↗
(key: string, value: string)

Source from the content-addressed store, hash-verified

100 }
101
102 set(key: string, value: string): boolean {
103 const setBySession = this.setSession(key, value);
104 const setByLocal = localStorage.set(key, value);
105 return setBySession || setByLocal;
106 }
107}
108
109export const sessionThenLocalStorage = new SessionThenLocalStorage();

Callers

nothing calls this directly

Calls 2

setSessionMethod · 0.95
setMethod · 0.65

Tested by

no test coverage detected