package devkit

  1. Overview
  2. Docs

Various types of in-memory caches

module type Lock = sig ... end
module TimeLimited2 (E : Stdlib.Set.OrderedType) (Lock : Lock) : sig ... end
module LRU (K : Stdlib.Hashtbl.HashedType) : sig ... end
module Count : sig ... end

Count elements

module Group : sig ... end
val group_fst : ('a * 'b) Enum.t -> ('a * 'b list) Enum.t
module Assoc : sig ... end

One-to-one associations

module Lists : sig ... end
class 'a cache : ('a list -> unit) -> limit:int -> object ... end
type 'a reused
val reuse : (unit -> 'a) -> ('a -> unit) -> 'a reused
val use : 'a reused -> 'a
val recycle : 'a reused -> 'a -> unit
module Reuse (T : sig ... end) : sig ... end
OCaml

Innovation. Community. Security.