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

Method invalidate

packages/effect/src/ui/Query.ts:604–613  ·  view source on GitHub ↗
(args?: unknown)

Source from the content-addressed store, hash-verified

602 )
603 }
604 static invalidate(args?: unknown) {
605 return withCache((cache, context) =>
606 Effect.sync(() => {
607 const span = Context.getOrUndefined(context, Tracer.ParentSpan)
608 cache.invalidate([
609 args === undefined ? QueryService : entryTarget(QueryService, args)
610 ], { byHand: true, parent: span && queryCore.spanContextOf(span) })
611 })
612 )
613 }
614 static changes(args: unknown) {
615 return Stream.fromChannel(
616 Channel.fromTransform((_, scope) =>

Callers

nothing calls this directly

Calls 4

withCacheFunction · 0.85
entryTargetFunction · 0.85
invalidateMethod · 0.65
syncMethod · 0.45

Tested by

no test coverage detected