effect-io-ai

Package: effect
Module: ScopedCache

ScopedCache.invalidateAll

Removes every entry from the cache and closes each entry scope.

When to use

Use to clear a scoped cache and release resources owned by all cached entries.

Details

If the cache is closed, the effect is interrupted.

See

Signature

declare const invalidateAll: <Key, A, E, R>(self: ScopedCache<Key, A, E, R>) => Effect.Effect<void>

Source

Since v4.0.0