MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / CacheEntryMetadata

Class CacheEntryMetadata

graphlite/src/cache/mod.rs:44–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42/// Cache entry metadata
43#[derive(Debug, Clone)]
44pub 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
54impl CacheEntryMetadata {
55 pub fn new(size_bytes: usize, level: CacheLevel) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected