MCPcopy
hub / github.com/callstack/agent-device / get

Function get

src/platforms/app-resolution-cache.ts:40–49  ·  view source on GitHub ↗
(scope, target)

Source from the content-addressed store, hash-verified

38
39 return {
40 get(scope, target) {
41 const key = buildAppResolutionCacheKey(scope, target);
42 const entry = entries.get(key);
43 if (!entry) return undefined;
44 if (entry.expiresAtMs <= nowMs()) {
45 entries.delete(key);
46 return undefined;
47 }
48 return entry.value;
49 },
50 set(scope, target, value) {
51 entries.set(buildAppResolutionCacheKey(scope, target), {
52 value,

Callers

nothing calls this directly

Calls 3

getMethod · 0.80
deleteMethod · 0.80

Tested by

no test coverage detected