Index_unix.Makemodule V : Index.Valuetype key = K.tThe type for keys.
type value = V.tThe type for values.
val v : ?fresh:bool -> ?readonly:bool -> log_size:int -> string -> tThe constructor for indexes.
val clear : t -> unitclear t clears t so that there are no more bindings in it.
exception Invalid_key_size of keyexception Invalid_value_size of valueThe exceptions raised when trying to add a key or a value of different size than encoded_size
replace t k v binds k to v in t, replacing any existing binding of k.
Iterates over the index bindings. Order is not specified. In case of recent replacements of existing values (after the last merge), this will hit both the new and old bindings.
val force_merge : ?hook:[ `After | `Before ] Index.Private.Hook.t -> t -> unitforce_merge t forces a merge for t.
val flush : t -> unitFlushes all buffers to the supplied IO instance.
val close : t -> unitCloses all resources used by t.