Module Cache.Storage
Cache storage objects.
type t
The type for CacheStorage objects. See
Brr_io.Fetch.caches
to get one.
val match' : ?query_opts:query_opts -> t -> Request.t -> Response.t option Fut.or_error
match' s req
is a stored response forreq
ins
(if any).
val has : t -> Jstr.t -> bool Fut.or_error
has s n
istrue
ifn
matches a cache name ins
.
val open' : t -> Jstr.t -> cache Fut.or_error
open' s n
opens the cache namedn
ofs
.
val delete : t -> Jstr.t -> bool Fut.or_error
delete s n
deletes the cache namedn
froms
.false
is returned ifn
did not exist.
val keys : t -> Jstr.t list Fut.or_error
keys s
are the cache names ins
.