d3ara1n / Polymerium

Fluent Minecraft Instance Manager & Launcher

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature] 改进的 LocalRepositoryService

d3ara1n opened this issue · comments

当下遇到的问题
自维护且缺乏统一管理的本地文件无法做文件防碰撞和文件哈希化。

改善的方法
使用 LocalRepositoryService: IRepositoryService 来定义池化的文件对象服务。通过数据库记录文件哈希和元数据,文件本体保存在local/objects/{hash[..2]}/{hash}

附加描述
能把网络文件缓存也由 IRepositoryService 代理实现吗?

没有必要实现这个,local文件和cache文件不需要单独写一个服务类