Package: effect
Module: ScopedCache
Constructs a new cache with the specified capacity, time to live, and lookup function.
Signature
declare const make: <Key, Value, Error = never, Environment = never>(options: { readonly lookup: Lookup<Key, Value, Error, Environment>; readonly capacity: number; readonly timeToLive: Duration.DurationInput; }) => Effect.Effect<ScopedCache<Key, Value, Error>, never, Scope.Scope | Environment>
Since v2.0.0