Cache

Introduction

Every feature version a product pins lives in .splent_cache/features/ as a read-only snapshot. The cache commands show what is there, which products use it, and delete what you no longer need. SPLENT Cache explains how products link to it.

splent cache:status
Products pin cache entries, and an entry nobody pins is an orphan PRODUCTS <product>/ pyproject.toml pins the versions features/ a link per feature pins links THE CACHE .splent_cache/features/ splent_feature_notes@v1.2.7 in use, cache:prune keeps it splent_feature_notes@v1.0.0 orphan, no product pins it COMMANDS Look Compare with products Delete cache:status cache:size cache:versions cache:usage cache:orphans cache:outdated cache:prune cache:clear orphans any scope
A product pins a version and links to its snapshot. An entry no product pins is an orphan, the only kind cache:prune deletes.
Command What it does
cache:status Every entry, pinned in the cache or editable at the workspace root
cache:orphans Entries no product references
cache:versions Every cached version of one feature
cache:usage Which products declare each feature
cache:size Disk usage per namespace and entry
cache:outdated Products on an older version than one in the cache
cache:prune Deletes the orphans and the broken links
cache:clear Deletes the whole cache, one namespace or one feature

Pruning or clearing

cache:prune deletes only what no product pins. cache:clear deletes whatever you name, in use or not.

Both work on features/ only. They never touch .splent_cache/spls/ or .splent_cache/marketplace/.


Table of contents


Back to top

splent. Distributed by an LGPL license v3. Contact us: drorganvidez@us.es