Module Cache.Storage

Cache storage objects.

val match' : ?query_opts:Brr_io.Fetch.Cache.query_opts -> Brr_io.Fetch.Cache.Storage.t -> Brr_io.Fetch.Request.t -> Brr_io.Fetch.Response.t option

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

val has : Brr_io.Fetch.Cache.Storage.t -> Jstr.t -> bool

has s n is true if n matches a cache name in s.

val open' : Brr_io.Fetch.Cache.Storage.t -> Jstr.t -> Brr_io.Fetch.Cache.Storage.cache

open' s n opens the cache named n of s.

val delete : Brr_io.Fetch.Cache.Storage.t -> Jstr.t -> bool

delete s n deletes the cache named n from s. false is returned if n did not exist.

val keys : Brr_io.Fetch.Cache.Storage.t -> Jstr.t list

keys s are the cache names in s.