effect-io-ai

Package: effect
Module: ScopedCache

ScopedCache.refresh

Forces a refresh of the value associated with the specified key in the cache.

When to use

Use to recompute a scoped cache entry immediately, even when an unexpired value is already cached.

Details

It will always invoke the lookup function to construct a new value, overwriting any existing value for that key.

See

Signature

declare const refresh: { <Key, A>(key: Key): <E, R>(self: ScopedCache<Key, A, E, R>) => Effect.Effect<A, E, R>; <Key, A, E, R>(self: ScopedCache<Key, A, E, R>, key: Key): Effect.Effect<A, E, R>; }

Source

Since v4.0.0