package ldp

  1. Overview
  2. Docs
type key
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.

val store : key -> Cohttp.Response.t -> string -> (Cohttp.Response.t * string) Lwt.t

store key response body stores response and body in cache for the given key. Returns (response, body).

find key looks up for key in cache and returns wether if was found and how to use it.

OCaml

Innovation. Community. Security.