Hyperlinkv0.8.0-beta.28

ScopedCache

ScopedCache.Entryinterfaceeffect/ScopedCache.ts:104
Entry<A, E>

A single scoped cache entry.

When to use

Use when inspecting the open state of a ScopedCache and you need the stored deferred result, entry scope, or expiration timestamp for a key.

Details

The entry contains the deferred lookup result shared by readers, the scope that owns resources acquired while computing the value, and an optional expiration time in milliseconds. Removing the entry closes its scope.

modelsState
export interface Entry<A, E> {
  expiresAt: number | undefined
  readonly deferred: Deferred.Deferred<A, E>
  readonly scope: Scope.Closeable
}
Referenced by 4 symbols