package resource_cache

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = {
  1. max_resources : int;
  2. idle_cleanup_after : Core_kernel.Time_ns.Span.t;
  3. max_resources_per_id : int;
  4. max_resource_reuse : int;
  5. 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
OCaml

Innovation. Community. Security.