package brr

  1. Overview
  2. Docs
Browser programming toolkit for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

brr-0.0.9.tbz
sha512=45cdf73c6a23c8fc4609a32ae2196d4790e5bdba34ca0b784bff9c0b70dab233eb336f1c11dc3002451042ff4cf25b643098ad0d011f14c3d6175842113bed21

doc/brr/Brr_io/Fetch/Cache/Storage/index.html

Module Cache.StorageSource

Cache storage objects.

Sourcetype cache = t

See t.

Sourcetype t

The type for CacheStorage objects. See Brr_io.Fetch.caches to get one.

Sourceval match' : ?query_opts:query_opts -> t -> Request.t -> Response.t option Fut.or_error

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

Sourceval has : t -> Jstr.t -> bool Fut.or_error

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

Sourceval open' : t -> Jstr.t -> cache Fut.or_error

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

Sourceval delete : t -> Jstr.t -> bool Fut.or_error

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

Sourceval keys : t -> Jstr.t list Fut.or_error

keys s are the cache names in s.