在 CacheBackend 接口新增 GetStale 方法,支持上游错误时按错误类型 (超时 vs 其他错误)检查对应的 stale 窗口返回过期缓存。 ProxyCache、DiskCache、TieredCache 均实现该方法。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- 添加 CacheBackend 接口统一内存/磁盘缓存访问 - 实现 DiskCache 磁盘缓存后端,支持目录层级和原子写入 - 实现 TieredCache 分层缓存(L1 内存 + L2 磁盘) - 修改 ProxyCache.Delete 返回 error 以符合接口 - 添加 CacheStats() 方法实现接口 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>