Skip to main content

Module cache

Module cache 

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

ModelsCache
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