fix(#134): Add generic get/set methods to CacheService#136
Merged
DevanshuNEU merged 1 commit intoDec 26, 2025
Conversation
- Add get(key) method for arbitrary key-value cache access - Add set(key, value, ttl) method with 5min default TTL - Both methods handle Redis unavailability gracefully - Proper error handling and logging - Add 8 unit tests for new methods Fixes AttributeError in /playground/validate-repo endpoint.
|
@DevanshuNEU is attempting to deploy a commit to the Dev's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
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.
Bug Fix: #134 - CacheService missing get/set methods
Problem
POST /api/v1/playground/validate-reporeturns 500 Internal Server Error:The endpoint uses generic
cache.get()andcache.set()butCacheServiceonly had specialized methods likeget_search_results().Solution
Added generic methods to
CacheService:Features
Tests Added
8 new unit tests in
test_cache_service.py:test_get_returns_cached_valuetest_get_returns_none_when_key_missingtest_get_returns_none_when_redis_unavailabletest_get_handles_redis_errortest_set_stores_value_with_ttltest_set_uses_default_ttltest_set_returns_false_when_redis_unavailabletest_set_handles_redis_errorTest Results
Next Step
After merge, ping Arjun to flip
USE_MOCK = falsein frontend.Fixes #134