effect-io-ai

Package: effect
Module: Cache

Cache.Lookup

A Lookup represents a lookup function that, given a key of type Key, can return an effect that will either produce a value of type Value or fail with an error of type Error using an environment of type Environment.

Signature

type Lookup<Key, Value, Error, Environment> = (
  key: Key
) => Effect.Effect<Value, Error, Environment>

Source

Since v2.0.0