Expand description
Cache management for downloaded spores and domain metadata.
Cache location: $CMN_HOME/hypha/cache/
Cache structure:
$CMN_HOME/hypha/cache/
└── {domain}/
├── mycelium/
│ ├── cmn.json # cached cmn.json entry
│ ├── domain_state.json # anti-rollback serial/digest/key pin
│ ├── mycelium.json # full mycelium manifest
│ └── status.json # cache status for all items
│
├── repos/ # Bare git repositories for spawn/pull
│ └── {root_commit}/ # Repository identified by first commit SHA
│
└── spore/
└── {hash}/
├── spore.json
└── content/Structs§
- Cache
Dir - Cache directory structure
- Cache
Status - Cache status for domain metadata (cmn, mycelium)
- Cached
Spore - Information about a cached spore
- Domain
Cache - Domain-specific cache operations
- Domain
State Pin - Pinned domain-state for cmn.json anti-rollback checks.
- Fetch
Status - Status of a single cached item
- KeyTrust
Entry - A cached key trust entry — records that a domain confirmed ownership of a key
Constants§
Functions§
- handle_
clean - Handle the
cache cleancommand - handle_
list - Handle the
cache listcommand - handle_
path - Handle the
cache pathcommand
Type Aliases§
- Taste
Verdict Cache - Cached taste verdict for a spore — alias for the substrate standard type.