effect-io-ai

Package: effect
Module: Cache

Cache.Entry

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

Signature

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>
}

Source

Since v4.0.0