MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / cachedValue

Function cachedValue

src/compute-engine/boxed-expression/cache.ts:7–17  ·  view source on GitHub ↗
(
  v: CachedValue<T>,
  generation: number | undefined,
  fn: () => T
)

Source from the content-addressed store, hash-verified

5 type CacheEvent,
6} from '../../common/cache-stats.js';
7import {
8 beginObjectDeps,
9 endObjectDeps,
10 engineHasObjects,
11 mergeObjectDeps,
12 objectDepsValid,
13 type ObjectDeps,
14} from './object-deps.js';
15import { asComputation } from '../../common/computation-depth.js';
16import { containsObject } from './object-walk.js';
17import { isExpression } from './type-guards.js';
18import { failClosedCounts } from './store-guard.js';
19import {
20 forgetStackDependentAnswers,

Callers 2

sgnMethod · 0.90
typeMethod · 0.90

Calls 1

fnFunction · 0.85

Tested by

no test coverage detected