Module Concurrent.MakeCache

Parameters

module Key : sig ... end

Signature

type key = Key.t
type 'a t
val create : name:string -> 'a t
val lookup : 'a t -> key -> 'a option
val add : 'a t -> key -> 'a -> unit
val remove : 'a t -> key -> unit
val clear : 'a t -> unit
val set_lru_mode : 'a t -> lru_limit:int option -> unit
val update : f:('a option -> 'a option) -> 'a t -> key -> unit