package ringo-lwt

  1. Overview
  2. Docs

Parameters

module C : sig ... end

Signature

include Sigs.CACHE_MAP_OPT with type key = C.key
type key = C.key
type 'a t
val replace : 'a t -> key -> 'a option Lwt.t -> unit
val fold : (key -> 'a -> 'b -> 'b Lwt.t) -> 'a t -> 'b -> 'b Lwt.t
val fold_promises : (key -> 'a option Lwt.t -> 'b -> 'b) -> 'a t -> 'b -> 'b
val find_opt : 'a t -> key -> 'a option Lwt.t option
val find_or_replace : 'a t -> key -> (key -> 'a option Lwt.t) -> 'a option Lwt.t
val remove : 'a t -> key -> unit
val length : 'a t -> int
val capacity : 'a t -> int
val clear : 'a t -> unit
val create : unit -> 'a t
OCaml

Innovation. Community. Security.