Skip to main content

Module cache

Module cache 

Source
Expand description

TTL-based file caching for GitHub API responses.

Stores issue and repository data as JSON files with embedded metadata (timestamp, optional etag). Cache entries are validated against TTL settings from configuration.

Structs§

CacheEntry
A cached entry with metadata.
FileCacheImpl
File-based cache implementation with TTL support.

Constants§

DEFAULT_ISSUE_TTL_MINS
Default TTL for issue cache entries (in minutes).
DEFAULT_MODEL_TTL_SECS
Default TTL for model registry cache entries (in seconds).
DEFAULT_REPO_TTL_HOURS
Default TTL for repository cache entries (in hours).
DEFAULT_SECURITY_TTL_DAYS
Default TTL for security finding cache entries (in days).

Traits§

FileCache
Trait for TTL-based filesystem caching.

Functions§

cache_dir
Returns the cache directory.