MCPcopy
hub / github.com/react/metro / set

Method set

packages/metro-cache/src/types.js:15–15  ·  view source on GitHub ↗
(key: Buffer, value: T)

Source from the content-addressed store, hash-verified

13 name?: string;
14 get(key: Buffer): ?T | Promise<?T>;
15 set(key: Buffer, value: T): void | Promise<void>;
16 clear(): void | Promise<void>;
17}

Callers 15

checkHealthMethod · 0.65
#updateClockMethod · 0.65
fileAddedMethod · 0.65
fileModifiedMethod · 0.65
fileRemovedMethod · 0.65
getDifferenceMethod · 0.65
bulkAddOrModifyMethod · 0.65
#lookupByNormalPathMethod · 0.65
#cloneTreeMethod · 0.65
#emitEventMethod · 0.65

Implementers 2

HttpStorepackages/metro-cache/src/stores/HttpSt
FileStorepackages/metro-cache/src/stores/FileSt

Calls

no outgoing calls

Tested by 8

initFunction · 0.52
createFileFunction · 0.52
addInferredDependencyFunction · 0.52
removeInferredDependencyFunction · 0.52
traverseDependenciesFunction · 0.52
registerFunction · 0.52