Module type Persistent_cache.PHashtable
val open_in : string -> 'a t
open_in f
rebuilds a table from the records stored in filef
. As marshaling is not type-safe, it might segfault.
val add : 'a t -> key -> 'a -> unit
add tbl key elem
adds the bindingkey
elem
to the tabletbl
. (and writes the binding to the file associated withtbl
.) Ifkey
is already bound, raises KeyAlreadyBound