Skip to main content

Module github_read_cache

Module github_read_cache 

Source
Expand description

Durable cache rows for rendered GitHub issues and pull requests.

The cache belongs in AFT’s existing aft.db. Keeping the effective authentication identity as a cryptographic hash prevents cache rows from exposing credentials while still keeping principals strictly isolated.

Structs§

GithubReadCacheEntry
Cached canonical text and the timestamps used for cache freshness decisions.
GithubReadCacheKey
Exact durable cache key for one GitHub resource and authentication identity.

Enums§

GithubReadResourceKind
The GitHub resource type that selects a cache namespace.

Functions§

ensure_github_read_cache_schema
Create the GitHub-read cache table and index in the already-open AFT database.
evict_hard_expired_github_read_cache_entries
Delete rows whose source-fetch time has reached the hard-TTL cutoff.
invalidate_github_read_cache_resource
Invalidate a resource across identities, or only one identity when supplied.
lookup_github_read_cache_entry
Look up one cache row using the full resource and authentication-identity key.
upsert_github_read_cache_entry
Insert or replace the canonical render for one exact cache key.