Brr_ocaml_poke_ui.StorePersistent storage.
Basic interface to abstract over Brr_io.Storage and Web extension storage.
val create : get:(Jstr.t -> Jstr.t option Fut.or_error) -> set:(Jstr.t -> Jstr.t -> unit Fut.or_error) -> tstore is a store with given get and set functions.
val page : ?key_prefix:Jstr.t -> Brr_io.Storage.t -> tlocal_store is a store that uses Brr_io.Storage.local, with keys prefixed by key_prefix (defaults to "ocaml-repl-").
webext_store is a store using the Web extension storage. The "storage" premission must be added to the manifest.
val get : t -> Jstr.t -> Jstr.t option Fut.or_errorget s k is the value of key k in s (if any).
val set : t -> Jstr.t -> Jstr.t -> unit Fut.or_errorset s k v sets the value of k in s to v.