MCPcopy Create free account
hub / github.com/Effect-TS/effect / internals

Function internals

packages/effect/src/ui/Query.ts:3379–3384  ·  view source on GitHub ↗
(
  cache: { readonly [CacheTypeId]: unknown }
)

Source from the content-addressed store, hash-verified

3377 * @internal
3378 */
3379export const internals = (
3380 cache: { readonly [CacheTypeId]: unknown }
3381): CacheInternals => {
3382 const make = (cache as Partial<queryCore.CacheCell>)[queryCore.CacheCellTypeId]
3383 return make === undefined ? cache as CacheInternals : make()
3384}
3385
3386/**
3387 * The run a Command body runs in. The effect/ui runtime provides it, so a

Callers 1

withCacheFunction · 0.85

Calls 1

makeFunction · 0.70

Tested by

no test coverage detected