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

Function invalidateAll

packages/effect/src/Cache.ts:1235–1238  ·  view source on GitHub ↗
(self: Cache<Key, A, E, R>)

Source from the content-addressed store, hash-verified

1233 * @since 4.0.0
1234 */
1235export const invalidateAll = <Key, A, E, R>(self: Cache<Key, A, E, R>): Effect.Effect<void> =>
1236 effect.sync(() => {
1237 MutableHashMap.clear(self.map)
1238 })
1239
1240/**
1241 * Retrieves the approximate number of entries in the cache.

Callers

nothing calls this directly

Calls 2

clearMethod · 0.80
syncMethod · 0.45

Tested by

no test coverage detected