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§
- Cache
Entry - A cached entry with metadata.
- File
Cache Impl - 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§
- File
Cache - Trait for TTL-based filesystem caching.
Functions§
- cache_
dir - Returns the cache directory.