Module Omod_support.Cache
Omod cache.
val file : Conf.t -> Omod.fpathfile confis the cache file in configurationconf.
val read : Conf.t -> force:bool -> err:Log.t -> (t option, string) Stdlib.resultread confis the cache of configurationconf(if any). Ifforceistrueand a cache read error occurs, it is logged onerrandOk Noneis returned.
val write : Conf.t -> t -> (unit, string) Stdlib.resultwrite conf cwrites the cachecof configurationconf.
val clear : Conf.t -> (unit, string) Stdlib.resultclear confclears the cachecof configurationconf.
val get : ?err:Log.t -> ?note:Log.t -> ?progress:bool -> Conf.t -> force:bool -> trust:bool -> (t, string) Stdlib.resultget ~err ~note ~progress conf ~force ~trustget the cache of configurationconf, forcing it ifforceistrueand making sure it is fresh unlesstrustistrue, usingerrto report errors,noteto report indexing operations (defaults toLog.nil) andprogressto indicate if progress should be reported onnote(defaults tofalse).