Skip to content

Commit 9c04a08

Browse files
committed
调整: 同步 1.0.2 发布文档
1 parent a41e3a1 commit 9c04a08

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## 1.0.1 - 2026-05-12
3+
## 1.0.2 - 2026-05-12
44

55
### 改进
66

@@ -9,6 +9,11 @@
99
- 空间不足错误新增结构化 `CacheError.insufficientCacheSpace(requiredLength:maxCacheLength:)`,便于调用方按错误类型处理。
1010
- 本地代理 NIO EventLoop 默认按处理器数量配置线程数,并收敛代理运行状态维护。
1111
- 简化预加载完成、取消和失败路径的公共清理逻辑。
12+
13+
## 1.0.1 - 2026-05-12
14+
15+
### 改进
16+
1217
- 缓存空间淘汰策略升级为 LRU:成功写入、读取缓存数据和获取完整缓存文件路径会刷新缓存单元的最近访问时间;缓存状态查询不改变淘汰顺序。
1318
- 拆分代理路由内部职责,提取请求解析、缓存响应、回源下载、响应校验、HLS playlist 响应和代理响应写入适配,降低 `HTTPRequestRouter` 维护复杂度。
1419
- 拆分 `URLSessionDownloader` 内部职责,提取 streaming delegate、下载配置、响应校验、重试策略和后台任务协调。

Documentation/architecture.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
<h1>HTTPMediaCache Architecture</h1>
172172
<p class="subtitle">Swift-only local HTTP media cache: proxy playback, preload, HLS rewrite, byte range storage.</p>
173173
</div>
174-
<div class="status"><span class="pulse"></span>1.0.1 public API surface</div>
174+
<div class="status"><span class="pulse"></span>1.0.2 public API surface</div>
175175
</header>
176176

177177
<section class="diagram-card" aria-label="HTTPMediaCache architecture diagram">
@@ -336,7 +336,7 @@ <h1>HTTPMediaCache Architecture</h1>
336336
</article>
337337
</section>
338338

339-
<footer>Generated for HTTPMediaCache 1.0.1 documentation.</footer>
339+
<footer>Generated for HTTPMediaCache 1.0.2 documentation.</footer>
340340
</main>
341341
</body>
342342
</html>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ HTTPMediaCache 是一个 Swift-only 的本地 HTTP 多媒体缓存库。它通
3232
`Package.swift` 中添加依赖:
3333

3434
```swift
35-
.package(url: "https://github.com/sunimp/HTTPMediaCache.git", from: "1.0.1")
35+
.package(url: "https://github.com/sunimp/HTTPMediaCache.git", from: "1.0.2")
3636
```
3737

3838
然后将 `HTTPMediaCache` 添加到 target dependencies:

0 commit comments

Comments
 (0)