Hyperlinkv0.8.0-beta.28

ScopedCache

ScopedCache.Statetypeeffect/ScopedCache.ts:78
State<K, A, E>

Represents whether a ScopedCache is open or closed.

When to use

Use when inspecting the low-level lifecycle state of a scoped cache.

Details

Open stores cached entries in access order for reuse and eviction. Closed means the owning scope has closed and the cache can no longer perform lookup operations.

models
export type State<K, A, E> = {
  readonly _tag: "Open"
  readonly map: MutableHashMap.MutableHashMap<K, Entry<A, E>>
} | {
  readonly _tag: "Closed"
}
Referenced by 1 symbols