package dune-private-libs

  1. Overview
  2. Docs
Private libraries of Dune

Install

Dune Dependency

Authors

Maintainers

Sources

dune-2.5.1.tbz
sha256=8f77d3a87f208e0d7cccaa1c48c4bb1bb87d62d07c3f25e9b8ba298e028ce52b
sha512=f209f12ced10c1abf8782bdb0143f4cec77795f7174d2cc75130afb1e01550b01f2f77b9e3ec4888efdad83d2f9878d179b39126f824f4e522f3ef4da34bf27e

doc/dune-private-libs.cache/Cache/module-type-Cache/index.html

Module type Cache.Cache

type t
val set_build_dir : t -> Stdune.Path.t -> t

Set the absolute path to the build directory for interpreting relative paths when promoting files.

val with_repositories : t -> repository list -> t

Set all the version controlled repositories in the workspace to be referred to when promoting files.

val promote : t -> (Stdune.Path.Build.t * Stdune.Digest.t) list -> Key.t -> metadata -> repository:int option -> duplication:Duplication_mode.t option -> (unit, string) Stdune.Result.t

Promote files produced by a build rule into the cache.

Find a build rule in the cache by its key.

val retrieve : t -> File.t -> Stdune.Path.t

Materialise a cached file in the build directory (using Copy or Hardlink as per the duplication mode) and return the path to it.

val deduplicate : t -> File.t -> unit

Deduplicate a file, i.e. replace the file in_the_build_directory with a hardlink to the one in_the_cache if the deduplication mode is set to Hardlink (or do nothing if the mode is Copy).

val teardown : t -> unit

Remove the local cache and disconnect with a distributed cache client if any.

OCaml

Innovation. Community. Security.