Omod_support.CacheOmod cache.
val file : Conf.t -> Omod.fpathfile conf is the cache file in configuration conf.
read conf is the cache of configuration conf (if any). If force is true and a cache read error occurs, it is logged on err and Ok None is returned.
write conf c writes the cache c of configuration conf.
val clear : Conf.t -> (unit, string) Stdlib.resultclear conf clears the cache c of configuration conf.
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 ~trust get the cache of configuration conf, forcing it if force is true and making sure it is fresh unless trust is true, using err to report errors, note to report indexing operations (defaults to Log.nil) and progress to indicate if progress should be reported on note (defaults to false).
status ~err conf c is the status of cache c of configuration conf.