Repository navigation
release: 2.8.0 - #80
Merged
Merged
Conversation
chore: bump version to v2.8.0 for next development cycle
chore: back-merge 2.7.0 to develop
- Add pkg/cache: thread-safe Cache with Set/Get/Delete/DeletePrefix/Clear/StartCleanup - Add full unit tests for cache package (TTL, concurrency, prefix deletion) - Add cachedCovidService wrapping CovidService with 15m/1h/24h TTL strategy - Add cachedRegencyService wrapping RegencyServiceInterface - Add CacheInvalidator interface for cache clearing - Add POST /admin/cache/clear endpoint protected by X-Admin-Key header - Wire cache in cmd/main.go: 1h default TTL, 5m cleanup interval - RegencyService field in Services struct now uses interface for flexibility
- Add comprehensive tests for cachedCovidService (cache hit/miss + error paths) - Add comprehensive tests for cachedRegencyService (cache hit/miss + error paths) - Add tests for AdminHandler ClearCache (success, wrong key, no key, empty env) - Coverage improved from 70.8% to 85.2% (threshold: 80%) Closes #78
Assign all error return values from cache-hit verification calls to satisfy golangci-lint errcheck rules.
- Add pkg/cache/redis.go with RedisCache and RedisAwareCache - RedisAwareCache: in-memory (fast reads) + Redis (distributed persistence/invalidation) - cmd/main.go: opt-in via REDIS_ADDR env var, graceful fallback to in-memory - docker-compose: added shared-infra network + REDIS_ADDR=redis:6379 - All existing tests still pass (go test ./pkg/cache/...)
feat(cache): add in-memory caching layer with TTL and admin invalidation
Contributor
📊 Go Coverage Report
DetailsRun |
aidil-coder-bot
approved these changes
Mar 30, 2026
aidil-coder-bot
left a comment
Collaborator
There was a problem hiding this comment.
LGTM ✅ All CI checks passed. Release 2.8.0 ready.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
release 2.8.0
This PR contains the changes for version
2.8.0.Checklist
🤖 This PR was automatically created by the release workflow.