Expand description
Cache abstraction layer
Provides multi-level caching with memory support
Structs§
Enums§
- Cache
Lookup - 缓存查找结果
Traits§
Functions§
- read_
through - Read-through(同步版):缓存未命中时通过
loader回源加载,写入缓存后返回 - read_
through_ async - Read-through(异步版):缓存未命中时通过异步
loader回源加载,写入缓存后返回 - write_
around - Write-around(写旁路):仅写后端存储,同时失效缓存中的旧值
- write_
through - Write-through(同步版):同时写入缓存和后端存储(通过
writer回调) - write_
through_ async - Write-through(异步版):同时写入缓存和异步后端存储