| 42 | /// Cache entry metadata |
| 43 | #[derive(Debug, Clone)] |
| 44 | pub struct CacheEntryMetadata { |
| 45 | pub created_at: Instant, |
| 46 | pub last_accessed: Instant, |
| 47 | pub access_count: u32, |
| 48 | pub size_bytes: usize, |
| 49 | pub ttl: Option<Duration>, |
| 50 | pub level: CacheLevel, |
| 51 | pub tags: Vec<String>, // For cache invalidation |
| 52 | } |
| 53 | |
| 54 | impl CacheEntryMetadata { |
| 55 | pub fn new(size_bytes: usize, level: CacheLevel) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected