frdl/cta
最新稳定版本:v0.0.1
Composer 安装命令:
composer require frdl/cta
包简介
Content-addressable storage for PHP.
README 文档
README
Content-addressable storage for PHP. work in progress! (ALPHA version)
Idea
Save Contents
- Split Contents into chunks (of equal length)/save to ChunkStorage
- Concat ChunkHashes into FileStorage Entry
- Save header lines and FileStorage Entry CTA-Hash into UriStorage
Read/Serve Contents
- Serve header lines from UriStorage (if for Browser/Download)
- Look up FileStorage Entry in UriStorage
- Look up ChunkHashes in FileStorage
- Concat chunks from ChunkStorage to output contents
spec
content-addressable - 1.3.6.1.4.1.37553.8.1.8.1.16606
- 1.3.6.1.4.1.37553.8.1.8.1.16606- CTA paradigmas where we do NOT track for hash collisions.
- 1.3.6.1.4.1.37553.8.1.8.1.16606.1.56234465 - To reduce the possibility of collisions we store the hash along with the content-size.
- 1.3.6.1.4.1.37553.8.1.8.1.16606.1.27200801029 - Files/content is saved into chunks of the same size/length.
Server - frdl\cta\Server::class
- UriStorage where we store references: uri[hash]<->file[hash]<->chunks[hashes]
- UriStorage where we store (and may serve) headers associated to a file.
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-10