Module Resource_cache__.Config

type t = {
max_resources : int;
idle_cleanup_after : Core_kernel.Time_ns.Span.t;
max_resources_per_id : int;
max_resource_reuse : int;
close_idle_resources_when_at_limit : bool;

The cache will close the least recently used idle resource when there is pressure at the max_resources limit.

}
val compare : t -> t -> int
val close_idle_resources_when_at_limit : t -> bool
val max_resource_reuse : t -> int
val max_resources_per_id : t -> int
val idle_cleanup_after : t -> Core_kernel.Time_ns.Span.t
val max_resources : t -> int
module Fields : sig ... end
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
val create : max_resources:int -> idle_cleanup_after:Core_kernel.Time_ns.Span.t -> max_resources_per_id:int -> max_resource_reuse:int -> close_idle_resources_when_at_limit:bool -> t
module Stable : sig ... end