refactor: 改造为独立插件仓 ipass-plugin-cache(对齐兄弟仓形态)
- 扁平化:rust/crates/plugin-cache/src → src/,单包 Cargo.toml(name ipass-plugin-cache 2.0.0),
path 依赖改 ../ipass-core(内核+vendor ngx),删除旧单体拆分残留(rust/ 层级、
deps/ipass submodule、.gitmodules、conf/、tests/、多页静态 www/、AGENTS.md)
- R19 启停对齐:access/log 热路径加 plugin_registry::plugin_enabled("cache")
门控,fail-closed 404(数据面是鉴权后磁盘读,禁用放行=无鉴权读缓存盘);
location 圈定暂用 8 前缀路由表,ipass_cache 指令待 gateway 接入轮
- 旧独立应用形态保留在 tag legacy-app-final
- 文档:CLAUDE.md(装配关系+未挂载待办+本机编译 env 姿势)、README.md、
docs/cache-usage.md 保留;docs/plugins.md(单体时代)删除
- 验证:cargo check --release 通过,cargo test 4 passed
Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
1 parent
f7c70a0e19
commit
2c8fb2a1ee
128 files changed
+110
-9496
No files matched your search
@@ -0,0 +1,13 @@
|
||||
# ipass-plugin-cache
|
||||
|
||||
iPass 统一制品缓存插件(go / cargo / pypi / npm / maven / docker)。
|
||||
|
||||
- **缓存内容**:nginx 原生 `proxy_cache` 落本地磁盘,插件不碰制品字节
|
||||
(转发、Range、重试、连接池、磁盘淘汰全交回 nginx)
|
||||
- **鉴权 / 计量 / 管理 API**:本插件 access handler(统一 `sk_` Key,与
|
||||
LLM/apix 同一份配额)+ log handler(按生态记 `HIT/MISS/...`,共享内存)
|
||||
- **上游表**:`cx:<route>` → 共享内存 + JSON 落盘,写法与 `plugin-apix`
|
||||
的 `ax:` 同构
|
||||
|
||||
用法与容量运维细节见 [docs/cache-usage.md](docs/cache-usage.md)。
|
||||
插件仓约定、接入待办、启停语义见 [CLAUDE.md](CLAUDE.md)。
|
||||
Reference in new issue
Block a user