Skip to content

Results Caching #69

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed

Results Caching #69

wants to merge 6 commits into from

Conversation

smartinov
Copy link
Contributor

No description provided.

Implement in-memory caching mechanism with:
- CacheKey struct for unique request identification
- CacheEntry with TTL support
- Thread-safe InMemoryCache implementation
- Lazy expiration on access
- Comprehensive unit tests
- Update collector factory to accept cache instance
- Add cache checks before PageSpeed API calls
- Store successful results in cache
- Update tests to pass cache parameter
- Add PAGESPEED_CACHE_TTL environment variable support
- Parse cache TTL with 15-minute default
- Initialize cache and pass to collector factory
- Add --cache-ttl command line flag
Document the design and implementation details for the
in-memory caching mechanism including requirements,
architecture, and testing strategy.
- Add cache-ttl flag to configuration table
- Add dedicated Caching section explaining the feature
- Update examples to show cache usage
- Add cache environment variable to Docker examples
- Add cache directory to .gitignore
- Update Dockerfile to create cache directory with proper permissions
@smartinov smartinov closed this Jul 2, 2025
@smartinov smartinov deleted the feature/result-cache branch July 2, 2025 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant