( ref: LargeValueRef, callerScope?: LargeValueCacheScope )
| 121 | } |
| 122 | |
| 123 | export function materializeLargeValueRefSync( |
| 124 | ref: LargeValueRef, |
| 125 | callerScope?: LargeValueCacheScope |
| 126 | ): unknown { |
| 127 | cleanupExpiredValues() |
| 128 | const cached = inMemoryValues.get(ref.id) |
| 129 | if (!cached || !scopeMatchesRef(ref, cached.scope, callerScope)) { |
| 130 | return undefined |
| 131 | } |
| 132 | return cached.value |
| 133 | } |
| 134 | |
| 135 | export function materializeLargeValueRefSyncOrThrow( |
| 136 | ref: LargeValueRef, |
no test coverage detected