Warning: Reason support is experimental. We are looking for beta-tester and contributors.

Module type Os_request_cache.Cache_sig

module type Cache_sig = sig..end

type key

The type of the key

type 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.