package index

  1. Overview
  2. Docs
type ('k, 'v) t

A cache of values of type 'v, indexed by keys of type 'k.

val create : unit -> (_, _) t
val add : ('k, 'v) t -> 'k -> 'v -> unit
val find : ('k, 'v) t -> 'k -> 'v option
val remove : ('k, _) t -> 'k -> unit