Skip to main content

upsert_github_read_cache_entry

Function upsert_github_read_cache_entry 

Source
pub fn upsert_github_read_cache_entry(
    conn: &Connection,
    key: &GithubReadCacheKey,
    canonical_text: &str,
    fetched_at_ms: i64,
) -> Result<()>
Expand description

Insert or replace the canonical render for one exact cache key.

fetched_at_ms records the source-fetch time, so callers can apply fresh, soft-TTL, and hard-TTL policies without deriving age from filesystem metadata.