MCPcopy
hub / github.com/Effect-TS/effect / cacheInvalidate

Function cacheInvalidate

packages/sql/src/SqlResolver.ts:171–176  ·  view source on GitHub ↗
(input: I)

Source from the content-addressed store, hash-verified

169 return Effect.cacheRequestResult(makeRequest(tag, input, null as any, null as any), Exit.succeed(value))
170 },
171 cacheInvalidate(input: I) {
172 return Effect.withFiberRuntime<void>((fiber) => {
173 const cache = fiber.getFiberRef(FiberRef.currentRequestCache)
174 return cache.invalidate(makeRequest(tag, input, null as any, null as any))
175 })
176 },
177 makeExecute,
178 execute: makeExecute(self)
179 })

Callers

nothing calls this directly

Calls 3

makeRequestFunction · 0.70
getFiberRefMethod · 0.65
invalidateMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…