Module Os_request_cache.Make

Functor which creates a module Cache_sig.

Parameters

module M : sig ... end

Signature

type key = M.key

The type of the key

type value = M.value

The type of the value

val has : key -> bool

Returns true if the key has been stored into the cache.

val set : key -> value -> unit

Set the corresponding value for a key.

val reset : key -> unit

Remove a value for the given key.

val get : key -> value Lwt.t

Get the value corresponding to the given key.