Expand description
Models cache for persisting model metadata across sessions.
This module provides TTL-based caching for model information, following the pattern from OpenAI Codex’s models_manager.
Structs§
- Models
Cache - Serialized snapshot of models and metadata cached on disk.
Functions§
- load_
cache - Read and deserialize the cache file if it exists.
- load_
cache_ sync - Load cache synchronously (for initialization)
- save_
cache - Persist the cache contents to disk, creating parent directories as needed.
- save_
cache_ sync - Save cache synchronously