Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoltCache ¶
type BoltCache struct {
// contains filtered or unexported fields
}
BoltCache 基于 bbolt 的持久化缓存实现 实现 core.CacheStore 接口 采用内存 + 磁盘双层存储:读取走内存,写入同步到内存并异步刷盘 异步刷盘操作通过单 goroutine 串行化,保证磁盘写入顺序与内存操作一致
func NewBoltCache ¶
NewBoltCache 创建或打开基于 bbolt 的持久化缓存 cachePath: 缓存数据库文件路径,如 "/path/to/cache.db" bucketName: bbolt bucket 名称,默认为 "cache"
Click to show internal directories.
Click to hide internal directories.