集成Manifest缓存,增加镜像拉取速度

This commit is contained in:
user123456
2025-06-11 14:49:29 +08:00
parent a2550bc80e
commit 99389f26bb
3 changed files with 167 additions and 33 deletions

View File

@@ -82,9 +82,14 @@ enabled = true
# authType = "basic"
# enabled = false
# docker的匿名Token缓存配置,显著提升性能
# 缓存配置Token和Manifest统一管理,显著提升性能
[tokenCache]
# 是否启用token缓存
# 是否启用缓存(同时控制Token和Manifest缓存)
enabled = true
# 默认缓存时间(自动从响应中提取实际TTL
# 默认缓存时间(适用于mutable标签如latest等
defaultTTL = "20m"
# 说明:
# - immutable digest缓存24小时
# - latest/main等热门标签缓存5分钟
# - 普通tag使用defaultTTL
# - Token自动从响应中提取TTL