Expand description
核心数据类型定义
定义缓存系统中使用的核心数据结构
Structs§
- Cache
Value - 缓存值包装器,包含数据和元数据
Enums§
- Cache
Layer - 缓存层级枚举
- Cache
Operation - 缓存操作类型
- Eviction
Strategy - 缓存策略枚举
Functions§
- current_
timestamp - 获取当前 Unix 时间戳(秒)
- duration_
to_ seconds - 将 Duration 转换为秒数
- seconds_
to_ duration - 从秒数创建 Duration