Read_only.M
module Key : Type.S
module Value : Type.S
type key = Key.t
type value = Value.t
val v : Irmin__.Conf.t -> t Lwt.t
v config
initialises a storage layer, with the configuration config
.
find t k
is Some v
if k
is associated to v
in t
and None
is k
is not present in t
.
batch t f
applies the operations in f
in a batch. The exact guarantees depend on the implementation.
val clear : t -> unit Lwt.t
clear t
clears the storage. This operation is expected to be slow.
val close : t -> unit Lwt.t
close t
frees up all the resources associated with t
.