B00_cli.File_cacheSourceB000.File_cache interaction.
These commands act on a cache directory. They avoid to create it via B000.File_cache.create if it doesn't exists and return Ok false in that case.
keys_of_done_ops ops are the non-nil hashes of the operations of ops that are B000.Op.status.Done.
val delete :
dir:B0_std.Fpath.t ->
[ `All | `Keys of B000.File_cache.key list ] ->
(bool, string) Stdlib.resultdelete dir keys deletes keys in dirs if an explicit key does not exist in dir a Log.warn is issued. If `All is specified dir is deleted and recreated.
gc ~dir ~used deletes keys that are not in used.
keys dir lists the file cache keys on stdout.
status ~dir ~used shows statistics about the file cache on stdout. used determines keys that are in use.
val trim :
dir:B0_std.Fpath.t ->
used:B0_std.String.Set.t ->
max_byte_size:int ->
pct:int ->
(bool, string) Stdlib.resulttrim dir ~used ~max_byte_size ~pct trims the cache using B000.File_cache.trim_size. used determines keys that are assumed to be used.
key_arg is an argument converter for cache keys.
val keys_none_is_all :
?pos_right:int ->
unit ->
[ `All | `Keys of B000.File_cache.key list ] Cmdliner.Term.tkeys_none_is_all ~pos_right () are the keys at the right of position pos_right (defaults is all positional arguments). If none is specified this is `All.