include Irmin.CONTENT_ADDRESSABLE_STORE with type key = key with type value = V.t
The type for content-addressable backend stores. The 'a
phantom type carries information about the store mutability.
type key = key
The type for keys.
type value = V.t
The type for raw values.
find t k
is Some v
if k
is associated to v
in t
and None
is k
is not present in t
.
Write the contents of a value to the store. It's the responsibility of the content-addressable store to generate a consistent key.
type index = index
val v : ?fresh:bool -> ?readonly:bool -> ?lru_size:int -> index:index -> string -> [ `Read ] t Lwt.t
val sync : 'a t -> unit
val integrity_check : offset:int64 -> length:int -> key -> 'a t -> (unit, integrity_error) Stdlib.result