-
Notifications
You must be signed in to change notification settings - Fork 0
Storage 包
omeyang edited this page Sep 17, 2026
·
1 revision
数据存储客户端封装:缓存、KV、文档库、列式分析。每个包均有 OTel 链路追踪集成。
| 包 | 用途 | 稳定性 | 覆盖率 |
|---|---|---|---|
| xcache | 缓存抽象层(Redis / Memory 双后端) | Stable | 93.8% |
| xetcd | etcd 客户端 + Informer(list+watch 缓存) | Stable | 94.3% |
| xmongo | MongoDB 客户端(mongo-driver v2) | Stable | 96.0% |
| xclickhouse | ClickHouse 客户端(批次原子性 + COUNT UInt64) | Stable | 96.7% |
| 场景 | 用 |
|---|---|
| 内存或 Redis 缓存(接口统一) | xcache |
| 配置中心 / 服务发现 / 协调 | xetcd |
| 文档型业务数据存储 | xmongo |
| 大规模 OLAP 分析 | xclickhouse |
-
internal/storageopt:存储层共享选项(连接池、超时等)