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

Function cacheResolvedTargetDevice

src/core/dispatch-resolve.ts:266–269  ·  view source on GitHub ↗
(cacheKey: string, device: DeviceInfo)

Source from the content-addressed store, hash-verified

264}
265
266function cacheResolvedTargetDevice(cacheKey: string, device: DeviceInfo): DeviceInfo {
267 resolveTargetDeviceCacheScope.getStore()?.set(cacheKey, { ...device });
268 return device;
269}
270
271function buildResolveTargetDeviceCacheKey(
272 request: DeviceInventoryRequest,

Callers 1

resolveTargetDeviceFunction · 0.85

Calls 1

setMethod · 0.80

Tested by

no test coverage detected