Module Bucket_store.Make_with_mmap

Version with mmap

Parameters

Signature

type raw_bucket = Raw_bucket.t
type t = {
fn : string;
fd : Unix.file_descr;
mmap : Tjr_mmap.Mmap.int_mmap;
mutable closed : bool;
}
type bucket = {
index : int;
raw_bucket : Raw_bucket.t;
}
val create : ?⁠sz:int -> fn:string -> unit -> t
val open_ : fn:string -> t
val read_bucket : t -> int -> bucket
val write_bucket : 'a -> 'b -> unit
val sync : t -> unit
val close : t -> unit