Package: effect
Module: Cache
Represents a low-level cache entry containing a deferred lookup result and an optional expiration timestamp.
When to use
Use when inspecting a Cache’s low-level map and you need the stored
deferred lookup result or expiration timestamp for a key.
Details
An expiresAt value of undefined means the entry does not expire.
See
Cache for the public cache API that manages entries through
combinatorsSignature
export interface Entry<A, E> {
expiresAt: number | undefined
awaiters: number
readonly fiber: Fiber.Fiber<A, E>
await(this: Entry<A, E>): Effect.Effect<A, E>
}
Since v4.0.0