llm-config-cache
Multi-tier caching system with L1/L2 cache support, TTL management, and cache invalidation strategies for LLM Config Manager.
Features
- Two-Tier Caching: In-memory L1 cache + persistent L2 cache
- TTL Management: Automatic expiration of cached entries
- Cache Promotion: Hot entries promoted from L2 to L1
- Invalidation Strategies: Pattern-based and namespace-wide invalidation
- High Performance: Sub-microsecond L1 access, microsecond L2 access
Usage
[]
= "0.5.0"
use CacheManager;
async
Performance
- L1 cache hit: ~8 µs
- L2 cache hit: ~50 µs
- Cache miss: Falls through to storage
License
Licensed under the Apache License, Version 2.0.