Doc system test

Node cache

A local cache of one node's file output so an unchanged node is not run again; on by default.

Meta block front matter of this doc
namespaces
  • durian.cloud/cyanprint/composition
type
algorithm
code
  • sulfone.iridium/cyancoordinator/src/cache/key.rs
  • sulfone.iridium/cyancoordinator/src/cache/store.rs
  • sulfone.iridium/cyancoordinator/src/cache/mod.rs

The key is a SHA-256 over the node's version id, version number, images, answers, deterministic state and pinned processors and plugins, with a format version. Dependencies, resolvers and commands are left out of the key because layering always runs again. Off with --no-output-cache or CYANPRINT_NO_CACHE; folder from --cache-dir, CYANPRINT_CACHE, or the platform cache folder. A cached archive that fails to unpack is evicted and the node runs again. Found while reading, not run: the key is made from the answers known before the questions are asked (operator.rs:343) and the result is stored under it (operator.rs:501), so a rerun that starts with no answers can be served the first run's answers without asking. cyanprint cache path|size|clear manage it.

Where it lives

  • sulfone.iridium/cyancoordinator/src/cache/key.rs
  • sulfone.iridium/cyancoordinator/src/cache/store.rs
  • sulfone.iridium/cyancoordinator/src/cache/mod.rs

Stub: summary only.