Index.MakeSourceAn abstraction on top of the index library that exposes an API that better fits the irmin-pack use case.
module K : Irmin.Hash.Sinclude Index.S with type value := value and type t := t and type key := keyThe type for caches of index instances.
replace t k v binds k to v in t, replacing any existing binding of k.
If overcommit is true, the operation does not triger a merge, even if the caches are full. By default overcommit is false.
sync t syncs a read-only index with the files on disk. Raises RW_not_allowed if called by a read-write index.
is_merging t returns true if t is running a merge. Raises RO_not_allowed if called by a read-only index.
val v :
?flush_callback:(unit -> unit) ->
?fresh:bool ->
?readonly:bool ->
?throttle:[ `Block_writes | `Overcommit_memory ] ->
?lru_size:int ->
log_size:int ->
string ->
(t, [> create_error ]) result