citeformer.metadata.cache¶
Metadata cache via diskcache.
Default path: ~/.cache/citeformer/metadata/. Override with the
CITEFORMER_CACHE_DIR env var (which becomes the parent — the metadata
cache lives under <CITEFORMER_CACHE_DIR>/metadata/).
Module Contents¶
Functions¶
Return the shared on-disk metadata cache (singleton per process). |
API¶
- citeformer.metadata.cache.get_metadata_cache() diskcache.Cache¶
Return the shared on-disk metadata cache (singleton per process).
The cache directory is created on first access. Safe to call from multiple threads; diskcache is its own lock-based synchronizer.