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.

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).

Functions§

cache_dir
Returns the cache directory.