MCPcopy Index your code
hub / github.com/Effect-TS/effect / invalidateWhen

Method invalidateWhen

packages/effect/src/Cache.ts:139–139  ·  view source on GitHub ↗

* Invalidates the value associated with the specified key if the predicate holds.

(key: Key, predicate: Predicate.Predicate<Value>)

Source from the content-addressed store, hash-verified

137 * Invalidates the value associated with the specified key if the predicate holds.
138 */
139 invalidateWhen(key: Key, predicate: Predicate.Predicate<Value>): Effect.Effect<void>
140
141 /**
142 * Invalidates all values in the cache.

Callers 1

fromRequestFunction · 0.65

Implementers 1

CacheImplpackages/effect/src/internal/cache.ts

Calls

no outgoing calls

Tested by

no test coverage detected