MCPcopy
hub / github.com/southleft/figma-console-mcp / set

Method set

src/core/diff/version-cache.ts:64–73  ·  view source on GitHub ↗
(key: string | null, value: unknown)

Source from the content-addressed store, hash-verified

62 }
63
64 set(key: string | null, value: unknown): void {
65 if (key === null) return;
66 if (this.store.has(key)) this.store.delete(key);
67 this.store.set(key, value);
68 while (this.store.size > this.maxEntries) {
69 const oldestKey = this.store.keys().next().value;
70 if (oldestKey === undefined) break;
71 this.store.delete(oldestKey);
72 }
73 }
74
75 has(key: string | null): boolean {
76 return key !== null && this.store.has(key);

Callers 15

fetchFunction · 0.45
registerToolsMethod · 0.45
extractColorMethod · 0.45
extractTypographyMethod · 0.45
extractSpacingMethod · 0.45
extractRadiusMethod · 0.45
processStylesMethod · 0.45
startMethod · 0.45
handleFileInfoMethod · 0.45
sendCommandMethod · 0.45
registerFigmaAPIToolsFunction · 0.45

Calls 3

keysMethod · 0.80
hasMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected