MCPcopy Index your code
hub / github.com/callstack/agent-device / readResolveTargetDeviceCache

Function readResolveTargetDeviceCache

src/core/dispatch-resolve.ts:259–264  ·  view source on GitHub ↗
(cacheKey: string)

Source from the content-addressed store, hash-verified

257}
258
259function readResolveTargetDeviceCache(cacheKey: string): DeviceInfo | undefined {
260 const cache = resolveTargetDeviceCacheScope.getStore();
261 const cached = cache?.get(cacheKey);
262 if (!cached) return undefined;
263 return { ...cached };
264}
265
266function cacheResolvedTargetDevice(cacheKey: string, device: DeviceInfo): DeviceInfo {
267 resolveTargetDeviceCacheScope.getStore()?.set(cacheKey, { ...device });

Callers 1

resolveTargetDeviceFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected