(cacheKey: string)
| 257 | } |
| 258 | |
| 259 | function 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 | |
| 266 | function cacheResolvedTargetDevice(cacheKey: string, device: DeviceInfo): DeviceInfo { |
| 267 | resolveTargetDeviceCacheScope.getStore()?.set(cacheKey, { ...device }); |
no test coverage detected