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.
Functions§
- cache_
dir - Returns the cache directory.
- cache_
key_ issues - A cache key string in the format
issues/{owner}_{repo}.json - cache_
key_ repo_ metadata - Generate a cache key for an issue list.
- read_
cache - Read a cache entry from disk.
- write_
cache - Write a cache entry to disk.