package dokeysto
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Module Db.RWZSource
create fn create in read-write mode the persistent hashtbl whose data are stored compressed in file fn and whose index is stored in fn ^ ".idx".
open_existing fn open in read-write mode the persistent hashtbl whose data are stored compressed in file fn and whose index is stored in fn ^ ".idx".
destroy db rm data and metadata files of db and clear db's index hashtbl.
add db k v add the key-value binding (k,v) to db. v is compressed on the fly.
replace db k v replace the current binding for k in db by a binding from k to v. v is compressed on the fly. Cf. Hashtbl.replace for details.
remove tbl k remove the current binding for k in db. Cf. Hashtbl.replace for details.
find db k get and uncompress the current binding of k in db or raise Not_found.
iter f db apply f to all key-value pairs in db. Values are uncompressed on the fly. Cf. Hashtbl.iter for details.