Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Make_cache._
val clear : unit -> unit Lwt.t
val key : Cohttp.Header.t -> Iri.t -> key option
A cache may or may not return a key for the given headers and IRI. This allows to create caches for example for some domains only.
store key response body
stores response
and body
in cache for the given key
. Returns (response, body)
.
val find : key -> cache_find_response Lwt.t
find key
looks up for key in cache and returns wether if was found and how to use it.