package tezos-storage

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include Store_sigs.STORE
type t
type key = string list
type value = Stdlib.Bytes.t
val known : t -> key -> bool Lwt.t
val read : t -> key -> (value, Tezos_error_monad.TzCore.error list) Stdlib.result Lwt.t
val read_opt : t -> key -> value option Lwt.t
val store : t -> key -> value -> unit Lwt.t
val remove : t -> key -> unit Lwt.t
val known_dir : t -> key -> bool Lwt.t
val remove_dir : t -> key -> unit Lwt.t
type key_or_dir = [
  1. | `Key of key
  2. | `Dir of key
]
val fold : t -> key -> init:'a -> f:(key_or_dir -> 'a -> 'a Lwt.t) -> 'a Lwt.t
val keys : t -> key -> key list Lwt.t
val fold_keys : t -> key -> init:'a -> f:(key -> 'a -> 'a Lwt.t) -> 'a Lwt.t
val init : ?readonly:bool -> ?mapsize:int64 -> string -> (t, Tezos_error_monad.TzCore.error list) Stdlib.result Lwt.t
val close : t -> unit
val with_atomic_rw : t -> (unit -> 'a Lwt.t) -> 'a Lwt.t
val open_with_atomic_rw : ?mapsize:int64 -> string -> (t -> ('a, Tezos_error_monad.TzCore.error Tezos_error_monad.Error_monad.TzTrace.trace) Stdlib.result Lwt.t) -> ('a, Tezos_error_monad.TzCore.error list) Stdlib.result Lwt.t
OCaml

Innovation. Community. Security.