package dune-private-libs

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
val with_repositories : t -> Cache__.Cache_intf.repository list -> t
val promote : t -> (Stdune.Path.Build.t * Stdune.Digest.t) list -> Key.t -> Stdune.Sexp.t list -> repository:int option -> duplication:Cache__.Cache_intf.Duplication_mode.t option -> (unit, string) Stdune.Result.t
val retrieve : t -> Cache__.Cache_intf.File.t -> Stdune.Path.t
val deduplicate : t -> Cache__.Cache_intf.File.t -> unit
val set_build_dir : t -> Stdune.Path.t -> t
val teardown : t -> unit
val default_root : unit -> Stdune.Path.t
module Metadata_file : sig ... end
val promote_sync : t -> (Stdune.Path.Build.t * Stdune.Digest.t) list -> Key.t -> Stdune.Sexp.t list -> repository:int option -> duplication:Cache__.Cache_intf.Duplication_mode.t option -> (Metadata_file.t * Cache__.Cache_intf.promotion list, string) Stdune.Result.t
val make : ?root:Stdune.Path.t -> ?duplication_mode:Cache__.Cache_intf.Duplication_mode.t -> ?log:(Stdune.User_message.Style.t Stdune.Pp.t list -> unit) -> ?warn:(Stdune.User_message.Style.t Stdune.Pp.t list -> unit) -> (Cache__.Cache_intf.command -> unit) -> (t, string) Stdune.Result.t
val duplication_mode : t -> Cache__.Cache_intf.Duplication_mode.t
val size : t -> int

The size overhead of cached files. That is, the total size of cached files that are not linked in a build directory.

module Trimming_result : sig ... end
val trim : t -> int -> Trimming_result.t

trim cache size removes files from cache, starting with the least recently used one, until size bytes have been freed.

val garbage_collect : t -> Trimming_result.t

Purge invalid or incomplete cached rules.

val path_metadata : t -> Key.t -> Stdune.Path.t

Path to a metadata file

val path_data : t -> Key.t -> Stdune.Path.t

Path to a data file

OCaml

Innovation. Community. Security.