Skip to main content

Module cache

Module cache 

Source
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§

CacheDir
Cache directory structure
CacheStatus
Cache status for domain metadata (cmn, mycelium)
CachedSpore
Information about a cached spore
DomainCache
Domain-specific cache operations
DomainStatePin
Pinned domain-state for cmn.json anti-rollback checks.
FetchStatus
Status of a single cached item
KeyTrustEntry
A cached key trust entry — records that a domain confirmed ownership of a key

Constants§

DOMAIN_STATE_JUMP_THRESHOLD

Functions§

handle_clean
Handle the cache clean command
handle_list
Handle the cache list command
handle_path
Handle the cache path command

Type Aliases§

TasteVerdictCache
Cached taste verdict for a spore — alias for the substrate standard type.