jellycell.cache.store¶
Cache store — blob store (via :mod:diskcache) plus manifest JSON files.
Filesystem is the source of truth. SQLite index (:mod:jellycell.cache.index)
is a derived accelerator. Layout (spec §2.3)::
.jellycell/cache/
├── blobs/ # diskcache — content-addressed binary blobs
├── manifests/<cache-key>.json
└── state.db # SQLite index (see index.py)
Module Contents¶
Classes¶
Combined blob + manifest store for a project’s |
API¶
- class jellycell.cache.store.CacheStore(root: pathlib.Path)¶
Combined blob + manifest store for a project’s
.jellycell/cache/.Usable as a context manager for clean
diskcacheteardown.Initialization
- manifest_path(cache_key: str) pathlib.Path¶
The on-disk path for a cache key’s manifest.
- put_manifest(manifest: jellycell.cache.manifest.Manifest) pathlib.Path¶
Write the manifest; return its on-disk path.
- get_manifest(cache_key: str) jellycell.cache.manifest.Manifest¶
Read the manifest for a cache key. Raises if missing.
- iter_manifests() list[jellycell.cache.manifest.Manifest]¶
All manifests in insertion-free order (by filename).