Expand description
Section Cache System
Provides caching for static sections to:
- Reduce token costs (cached content not re-computed)
- Enable prompt prefix caching for API efficiency
- Track cache statistics for optimization
Structs§
- Cache
Key - Cache key for a section
- Cache
Stats - Cache statistics
- Cached
Entry - Cached entry with metadata
- Section
Cache - Section cache with statistics
Functions§
- clear_
global_ cache - Clear the global cache (for /clear, /compact, worktree switch)
- estimate_
tokens - Estimate token count for content
- global_
cache - Get the global section cache