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

Method _cache

src/compute-engine/index.ts:1560–1566  ·  view source on GitHub ↗

@internal

(
    cacheName: string,
    build: () => T,
    purge?: (t: T) => T | undefined
  )

Source from the content-addressed store, hash-verified

1558 */
1559 set precision(p: number | 'machine' | 'auto') {
1560 if (!this._numericConfiguration.setPrecision(p)) return;
1561 this._reset();
1562 }
1563
1564 /**
1565 * The unit used for unitless angles in trigonometric functions.
1566 *
1567 * - `rad`: radian, $2\pi$ radians is a full circle
1568 * - `deg`: degree, 360 degrees is a full circle
1569 * - `grad`: gradians, 400 gradians is a full circle

Callers 1

getRuleSetMethod · 0.95

Calls 1

getOrBuildMethod · 0.80

Tested by

no test coverage detected