jon.recoil.org

Module Fetch.Cache

Fetch caches.

type query_opts

The type for query options.

val query_opts : ?ignore_search:bool -> ?ignore_method:bool -> ?ignore_vary:bool -> ?cache_name:Jstr.t -> unit -> Brr_io.Fetch.Cache.query_opts

query_opts ~ignore_search ~ignore_method ~ignore_vary ~cache_name () are query options with given parameters.

type t

The type for Cache objects.

match' c req is a stored response for req in c (if any).

match_all c req is a list stored response for req in c.

add c req fetches req and adds the response to c.

add_all c reqs fetches reqs and adds their reponses to c.

put c req resp puts the req/resp pair to the cache.

delete c req deletes response to req from the cache. false is returned if req was not in the cache.

Cache storage

module Storage : sig ... end

Cache storage objects.